@knpkv/clockify-api-client 1.0.1 → 1.0.2
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.
|
@@ -102,12 +102,10 @@ export declare const AutomaticAccrualDto: Schema.Struct<{
|
|
|
102
102
|
export type AutomaticAccrualRequest = {
|
|
103
103
|
readonly "amount": number;
|
|
104
104
|
readonly "period"?: "MONTH" | "YEAR";
|
|
105
|
-
readonly "timeUnit"?: "DAYS" | "HOURS";
|
|
106
105
|
};
|
|
107
106
|
export declare const AutomaticAccrualRequest: Schema.Struct<{
|
|
108
107
|
readonly amount: Schema.Number;
|
|
109
108
|
readonly period: Schema.optionalKey<Schema.Literals<readonly ["MONTH", "YEAR"]>>;
|
|
110
|
-
readonly timeUnit: Schema.optionalKey<Schema.Literals<readonly ["DAYS", "HOURS"]>>;
|
|
111
109
|
}>;
|
|
112
110
|
export type AutomaticLockDtoV1 = {
|
|
113
111
|
readonly "changeDay"?: "MONDAY" | "TUESDAY" | "WEDNESDAY" | "THURSDAY" | "FRIDAY" | "SATURDAY" | "SUNDAY";
|
|
@@ -130,6 +128,7 @@ export type BalanceDtoV1 = {
|
|
|
130
128
|
readonly "id"?: string;
|
|
131
129
|
readonly "negativeBalanceAmount"?: number;
|
|
132
130
|
readonly "negativeBalanceLimit"?: boolean;
|
|
131
|
+
readonly "negativeBalanceUsed"?: number;
|
|
133
132
|
readonly "policyArchived"?: boolean;
|
|
134
133
|
readonly "policyId"?: string;
|
|
135
134
|
readonly "policyName"?: string;
|
|
@@ -145,6 +144,7 @@ export declare const BalanceDtoV1: Schema.Struct<{
|
|
|
145
144
|
readonly id: Schema.optionalKey<Schema.String>;
|
|
146
145
|
readonly negativeBalanceAmount: Schema.optionalKey<Schema.Number>;
|
|
147
146
|
readonly negativeBalanceLimit: Schema.optionalKey<Schema.Boolean>;
|
|
147
|
+
readonly negativeBalanceUsed: Schema.optionalKey<Schema.Number>;
|
|
148
148
|
readonly policyArchived: Schema.optionalKey<Schema.Boolean>;
|
|
149
149
|
readonly policyId: Schema.optionalKey<Schema.String>;
|
|
150
150
|
readonly policyName: Schema.optionalKey<Schema.String>;
|
|
@@ -308,10 +308,20 @@ export declare const CostRateRequestV1: Schema.Struct<{
|
|
|
308
308
|
export type CreateApprovalRequest = {
|
|
309
309
|
readonly "period"?: "WEEKLY" | "SEMI_MONTHLY" | "MONTHLY";
|
|
310
310
|
readonly "periodStart": string;
|
|
311
|
+
readonly "type"?: string;
|
|
311
312
|
};
|
|
312
313
|
export declare const CreateApprovalRequest: Schema.Struct<{
|
|
313
314
|
readonly period: Schema.optionalKey<Schema.Literals<readonly ["WEEKLY", "SEMI_MONTHLY", "MONTHLY"]>>;
|
|
314
315
|
readonly periodStart: Schema.String;
|
|
316
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
317
|
+
}>;
|
|
318
|
+
export type CreateApprovalRequestNoType = {
|
|
319
|
+
readonly "period"?: "WEEKLY" | "SEMI_MONTHLY" | "MONTHLY";
|
|
320
|
+
readonly "periodStart": string;
|
|
321
|
+
};
|
|
322
|
+
export declare const CreateApprovalRequestNoType: Schema.Struct<{
|
|
323
|
+
readonly period: Schema.optionalKey<Schema.Literals<readonly ["WEEKLY", "SEMI_MONTHLY", "MONTHLY"]>>;
|
|
324
|
+
readonly periodStart: Schema.String;
|
|
315
325
|
}>;
|
|
316
326
|
export type CreateClientRequestV1 = {
|
|
317
327
|
readonly "address"?: string;
|
|
@@ -429,14 +439,6 @@ export declare const CreateProjectFromTemplateV1: Schema.Struct<{
|
|
|
429
439
|
readonly name: Schema.String;
|
|
430
440
|
readonly templateProjectId: Schema.String;
|
|
431
441
|
}>;
|
|
432
|
-
export type CreateRecurringAssignmentRequestV1 = {
|
|
433
|
-
readonly "repeat"?: boolean;
|
|
434
|
-
readonly "weeks": number;
|
|
435
|
-
};
|
|
436
|
-
export declare const CreateRecurringAssignmentRequestV1: Schema.Struct<{
|
|
437
|
-
readonly repeat: Schema.optionalKey<Schema.Boolean>;
|
|
438
|
-
readonly weeks: Schema.Number;
|
|
439
|
-
}>;
|
|
440
442
|
export type CreateWebhookRequestV1 = {
|
|
441
443
|
readonly "name"?: string;
|
|
442
444
|
readonly "triggerSource": ReadonlyArray<string>;
|
|
@@ -553,6 +555,14 @@ export declare const DatePeriodRequest: Schema.Struct<{
|
|
|
553
555
|
readonly endDate: Schema.String;
|
|
554
556
|
readonly startDate: Schema.String;
|
|
555
557
|
}>;
|
|
558
|
+
export type DateRange = {
|
|
559
|
+
readonly "end"?: string;
|
|
560
|
+
readonly "start"?: string;
|
|
561
|
+
};
|
|
562
|
+
export declare const DateRange: Schema.Struct<{
|
|
563
|
+
readonly end: Schema.optionalKey<Schema.String>;
|
|
564
|
+
readonly start: Schema.optionalKey<Schema.String>;
|
|
565
|
+
}>;
|
|
556
566
|
export type DateRangeDto = {
|
|
557
567
|
readonly "end"?: string;
|
|
558
568
|
readonly "start"?: string;
|
|
@@ -561,6 +571,14 @@ export declare const DateRangeDto: Schema.Struct<{
|
|
|
561
571
|
readonly end: Schema.optionalKey<Schema.String>;
|
|
562
572
|
readonly start: Schema.optionalKey<Schema.String>;
|
|
563
573
|
}>;
|
|
574
|
+
export type DateRangeV1Request = {
|
|
575
|
+
readonly "end"?: string;
|
|
576
|
+
readonly "start"?: string;
|
|
577
|
+
};
|
|
578
|
+
export declare const DateRangeV1Request: Schema.Struct<{
|
|
579
|
+
readonly end: Schema.optionalKey<Schema.String>;
|
|
580
|
+
readonly start: Schema.optionalKey<Schema.String>;
|
|
581
|
+
}>;
|
|
564
582
|
export type DefaultEntitiesDto = {
|
|
565
583
|
readonly "projectId"?: string;
|
|
566
584
|
readonly "taskId"?: string;
|
|
@@ -577,6 +595,12 @@ export declare const DefaultEntitiesRequest: Schema.Struct<{
|
|
|
577
595
|
readonly projectId: Schema.optionalKey<Schema.String>;
|
|
578
596
|
readonly taskId: Schema.optionalKey<Schema.String>;
|
|
579
597
|
}>;
|
|
598
|
+
export type DeleteBalanceAssignmentV1Request = {
|
|
599
|
+
readonly "note": string;
|
|
600
|
+
};
|
|
601
|
+
export declare const DeleteBalanceAssignmentV1Request: Schema.Struct<{
|
|
602
|
+
readonly note: Schema.String;
|
|
603
|
+
}>;
|
|
580
604
|
export type EntityCreationPermission = never;
|
|
581
605
|
export declare const EntityCreationPermission: Schema.Never;
|
|
582
606
|
export type EntityIdNameDto = {
|
|
@@ -771,6 +795,14 @@ export type Feature = never;
|
|
|
771
795
|
export declare const Feature: Schema.Never;
|
|
772
796
|
export type FeaturePlan = never;
|
|
773
797
|
export declare const FeaturePlan: Schema.Never;
|
|
798
|
+
export type GetTimeEntriesByIdsRequest = {
|
|
799
|
+
readonly "hydrated"?: boolean;
|
|
800
|
+
readonly "timeEntryIds": ReadonlyArray<string>;
|
|
801
|
+
};
|
|
802
|
+
export declare const GetTimeEntriesByIdsRequest: Schema.Struct<{
|
|
803
|
+
readonly hydrated: Schema.optionalKey<Schema.Boolean>;
|
|
804
|
+
readonly timeEntryIds: Schema.$Array<Schema.String>;
|
|
805
|
+
}>;
|
|
774
806
|
export type GetTimeOffRequestsV1Request = {
|
|
775
807
|
readonly "end"?: string;
|
|
776
808
|
readonly "page"?: number;
|
|
@@ -1069,6 +1101,8 @@ export declare const MilestoneDto: Schema.Struct<{
|
|
|
1069
1101
|
readonly projectId: Schema.optionalKey<Schema.String>;
|
|
1070
1102
|
readonly workspaceId: Schema.optionalKey<Schema.String>;
|
|
1071
1103
|
}>;
|
|
1104
|
+
export type MonthlyRecurringType = never;
|
|
1105
|
+
export declare const MonthlyRecurringType: Schema.Never;
|
|
1072
1106
|
export type NegativeBalanceDto = {
|
|
1073
1107
|
readonly "amount"?: number;
|
|
1074
1108
|
readonly "period"?: string;
|
|
@@ -1201,24 +1235,10 @@ export declare const RateWithCurrencyRequestV1: Schema.Struct<{
|
|
|
1201
1235
|
readonly currency: Schema.String;
|
|
1202
1236
|
readonly since: Schema.optionalKey<Schema.String>;
|
|
1203
1237
|
}>;
|
|
1204
|
-
export type
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
};
|
|
1209
|
-
export declare const RecurringAssignmentDto: Schema.Struct<{
|
|
1210
|
-
readonly repeat: Schema.optionalKey<Schema.Boolean>;
|
|
1211
|
-
readonly seriesId: Schema.optionalKey<Schema.String>;
|
|
1212
|
-
readonly weeks: Schema.optionalKey<Schema.Number>;
|
|
1213
|
-
}>;
|
|
1214
|
-
export type RecurringAssignmentRequestV1 = {
|
|
1215
|
-
readonly "repeat"?: boolean;
|
|
1216
|
-
readonly "weeks": number;
|
|
1217
|
-
};
|
|
1218
|
-
export declare const RecurringAssignmentRequestV1: Schema.Struct<{
|
|
1219
|
-
readonly repeat: Schema.optionalKey<Schema.Boolean>;
|
|
1220
|
-
readonly weeks: Schema.Number;
|
|
1221
|
-
}>;
|
|
1238
|
+
export type RecurringEndType = never;
|
|
1239
|
+
export declare const RecurringEndType: Schema.Never;
|
|
1240
|
+
export type RecurringFrequency = never;
|
|
1241
|
+
export declare const RecurringFrequency: Schema.Never;
|
|
1222
1242
|
export type RoleRequestV1 = {
|
|
1223
1243
|
readonly "entityId": string;
|
|
1224
1244
|
readonly "role": "WORKSPACE_ADMIN" | "TEAM_MANAGER" | "PROJECT_MANAGER";
|
|
@@ -1451,16 +1471,6 @@ export declare const UpdateApprovalRequest: Schema.Struct<{
|
|
|
1451
1471
|
readonly note: Schema.optionalKey<Schema.String>;
|
|
1452
1472
|
readonly state: Schema.Literals<readonly ["PENDING", "APPROVED", "WITHDRAWN_SUBMISSION", "WITHDRAWN_APPROVAL", "REJECTED"]>;
|
|
1453
1473
|
}>;
|
|
1454
|
-
export type UpdateBalanceRequestV1 = {
|
|
1455
|
-
readonly "note"?: string;
|
|
1456
|
-
readonly "userIds": ReadonlyArray<string>;
|
|
1457
|
-
readonly "value": number;
|
|
1458
|
-
};
|
|
1459
|
-
export declare const UpdateBalanceRequestV1: Schema.Struct<{
|
|
1460
|
-
readonly note: Schema.optionalKey<Schema.String>;
|
|
1461
|
-
readonly userIds: Schema.$Array<Schema.String>;
|
|
1462
|
-
readonly value: Schema.Number;
|
|
1463
|
-
}>;
|
|
1464
1474
|
export type UpdateClientRequestV1 = {
|
|
1465
1475
|
readonly "address"?: string;
|
|
1466
1476
|
readonly "archived"?: boolean;
|
|
@@ -2174,35 +2184,6 @@ export declare const PublishAssignmentsRequestV1: Schema.Struct<{
|
|
|
2174
2184
|
}>>;
|
|
2175
2185
|
readonly viewType: Schema.optionalKey<Schema.Literals<readonly ["PROJECTS", "TEAM", "ALL"]>>;
|
|
2176
2186
|
}>;
|
|
2177
|
-
export type AssignmentCreateRequestV1 = {
|
|
2178
|
-
readonly "billable"?: boolean;
|
|
2179
|
-
readonly "end": string;
|
|
2180
|
-
readonly "hoursPerDay": number;
|
|
2181
|
-
readonly "includeNonWorkingDays"?: boolean;
|
|
2182
|
-
readonly "note"?: string;
|
|
2183
|
-
readonly "projectId": string;
|
|
2184
|
-
readonly "recurringAssignment"?: CreateRecurringAssignmentRequestV1;
|
|
2185
|
-
readonly "start": string;
|
|
2186
|
-
readonly "startTime"?: string;
|
|
2187
|
-
readonly "taskId"?: string;
|
|
2188
|
-
readonly "userId": string;
|
|
2189
|
-
};
|
|
2190
|
-
export declare const AssignmentCreateRequestV1: Schema.Struct<{
|
|
2191
|
-
readonly billable: Schema.optionalKey<Schema.Boolean>;
|
|
2192
|
-
readonly end: Schema.String;
|
|
2193
|
-
readonly hoursPerDay: Schema.Number;
|
|
2194
|
-
readonly includeNonWorkingDays: Schema.optionalKey<Schema.Boolean>;
|
|
2195
|
-
readonly note: Schema.optionalKey<Schema.String>;
|
|
2196
|
-
readonly projectId: Schema.String;
|
|
2197
|
-
readonly recurringAssignment: Schema.optionalKey<Schema.Struct<{
|
|
2198
|
-
readonly repeat: Schema.optionalKey<Schema.Boolean>;
|
|
2199
|
-
readonly weeks: Schema.Number;
|
|
2200
|
-
}>>;
|
|
2201
|
-
readonly start: Schema.String;
|
|
2202
|
-
readonly startTime: Schema.optionalKey<Schema.String>;
|
|
2203
|
-
readonly taskId: Schema.optionalKey<Schema.String>;
|
|
2204
|
-
readonly userId: Schema.String;
|
|
2205
|
-
}>;
|
|
2206
2187
|
export type CustomFieldDtoV1 = {
|
|
2207
2188
|
readonly "allowedValues"?: ReadonlyArray<string>;
|
|
2208
2189
|
readonly "description"?: string;
|
|
@@ -2286,6 +2267,7 @@ export type ApprovalRequestDtoV1 = {
|
|
|
2286
2267
|
readonly "id"?: string;
|
|
2287
2268
|
readonly "owner"?: ApprovalRequestOwnerDtoV1;
|
|
2288
2269
|
readonly "status"?: ApprovalRequestStatusDtoV1;
|
|
2270
|
+
readonly "type"?: string;
|
|
2289
2271
|
readonly "workspaceId"?: string;
|
|
2290
2272
|
};
|
|
2291
2273
|
export declare const ApprovalRequestDtoV1: Schema.Struct<{
|
|
@@ -2312,6 +2294,7 @@ export declare const ApprovalRequestDtoV1: Schema.Struct<{
|
|
|
2312
2294
|
readonly updatedBy: Schema.optionalKey<Schema.String>;
|
|
2313
2295
|
readonly updatedByUserName: Schema.optionalKey<Schema.String>;
|
|
2314
2296
|
}>>;
|
|
2297
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
2315
2298
|
readonly workspaceId: Schema.optionalKey<Schema.String>;
|
|
2316
2299
|
}>;
|
|
2317
2300
|
export type AssignmentHydratedDtoV1 = {
|
|
@@ -2357,6 +2340,53 @@ export declare const AssignmentHydratedDtoV1: Schema.Struct<{
|
|
|
2357
2340
|
readonly userName: Schema.optionalKey<Schema.String>;
|
|
2358
2341
|
readonly workspaceId: Schema.optionalKey<Schema.String>;
|
|
2359
2342
|
}>;
|
|
2343
|
+
export type CreateBalanceAssignmentV1Request = {
|
|
2344
|
+
readonly "balance": number;
|
|
2345
|
+
readonly "dateRange"?: DateRangeV1Request;
|
|
2346
|
+
readonly "note"?: string;
|
|
2347
|
+
readonly "policyId": string;
|
|
2348
|
+
readonly "userIds": ReadonlyArray<string>;
|
|
2349
|
+
};
|
|
2350
|
+
export declare const CreateBalanceAssignmentV1Request: Schema.Struct<{
|
|
2351
|
+
readonly balance: Schema.Number;
|
|
2352
|
+
readonly dateRange: Schema.optionalKey<Schema.Struct<{
|
|
2353
|
+
readonly end: Schema.optionalKey<Schema.String>;
|
|
2354
|
+
readonly start: Schema.optionalKey<Schema.String>;
|
|
2355
|
+
}>>;
|
|
2356
|
+
readonly note: Schema.optionalKey<Schema.String>;
|
|
2357
|
+
readonly policyId: Schema.String;
|
|
2358
|
+
readonly userIds: Schema.$Array<Schema.String>;
|
|
2359
|
+
}>;
|
|
2360
|
+
export type UpdateBalanceAssignmentV1Request = {
|
|
2361
|
+
readonly "balanceChange": number;
|
|
2362
|
+
readonly "dateRange"?: DateRangeV1Request;
|
|
2363
|
+
readonly "note"?: string;
|
|
2364
|
+
};
|
|
2365
|
+
export declare const UpdateBalanceAssignmentV1Request: Schema.Struct<{
|
|
2366
|
+
readonly balanceChange: Schema.Number;
|
|
2367
|
+
readonly dateRange: Schema.optionalKey<Schema.Struct<{
|
|
2368
|
+
readonly end: Schema.optionalKey<Schema.String>;
|
|
2369
|
+
readonly start: Schema.optionalKey<Schema.String>;
|
|
2370
|
+
}>>;
|
|
2371
|
+
readonly note: Schema.optionalKey<Schema.String>;
|
|
2372
|
+
}>;
|
|
2373
|
+
export type UpdateBalanceRequestV1 = {
|
|
2374
|
+
readonly "dateRange"?: DateRangeV1Request;
|
|
2375
|
+
readonly "note"?: string;
|
|
2376
|
+
readonly "sync"?: boolean;
|
|
2377
|
+
readonly "userIds": ReadonlyArray<string>;
|
|
2378
|
+
readonly "value": number;
|
|
2379
|
+
};
|
|
2380
|
+
export declare const UpdateBalanceRequestV1: Schema.Struct<{
|
|
2381
|
+
readonly dateRange: Schema.optionalKey<Schema.Struct<{
|
|
2382
|
+
readonly end: Schema.optionalKey<Schema.String>;
|
|
2383
|
+
readonly start: Schema.optionalKey<Schema.String>;
|
|
2384
|
+
}>>;
|
|
2385
|
+
readonly note: Schema.optionalKey<Schema.String>;
|
|
2386
|
+
readonly sync: Schema.optionalKey<Schema.Boolean>;
|
|
2387
|
+
readonly userIds: Schema.$Array<Schema.String>;
|
|
2388
|
+
readonly value: Schema.Number;
|
|
2389
|
+
}>;
|
|
2360
2390
|
export type AutomaticTimeEntryCreationDto = {
|
|
2361
2391
|
readonly "defaultEntities"?: DefaultEntitiesDto;
|
|
2362
2392
|
readonly "enabled"?: boolean;
|
|
@@ -2733,47 +2763,65 @@ export declare const MembershipDtoV1: Schema.Struct<{
|
|
|
2733
2763
|
readonly targetId: Schema.optionalKey<Schema.String>;
|
|
2734
2764
|
readonly userId: Schema.optionalKey<Schema.String>;
|
|
2735
2765
|
}>;
|
|
2736
|
-
export type
|
|
2737
|
-
readonly "
|
|
2738
|
-
readonly "
|
|
2739
|
-
readonly "
|
|
2740
|
-
readonly "
|
|
2741
|
-
readonly "
|
|
2742
|
-
readonly "
|
|
2743
|
-
readonly "
|
|
2744
|
-
readonly "
|
|
2745
|
-
readonly "published"?: boolean;
|
|
2746
|
-
readonly "recurring"?: RecurringAssignmentDto;
|
|
2747
|
-
readonly "startTime"?: string;
|
|
2748
|
-
readonly "taskId"?: string;
|
|
2749
|
-
readonly "userId"?: string;
|
|
2750
|
-
readonly "workspaceId"?: string;
|
|
2766
|
+
export type CreateRecurringAssignmentRequestV1 = {
|
|
2767
|
+
readonly "frequency"?: RecurringFrequency;
|
|
2768
|
+
readonly "interval"?: number;
|
|
2769
|
+
readonly "monthlyRecurringType"?: MonthlyRecurringType;
|
|
2770
|
+
readonly "occurrences"?: number;
|
|
2771
|
+
readonly "recurringEndType"?: RecurringEndType;
|
|
2772
|
+
readonly "repeat"?: boolean;
|
|
2773
|
+
readonly "until"?: string;
|
|
2774
|
+
readonly "weeks"?: number;
|
|
2751
2775
|
};
|
|
2752
|
-
export declare const
|
|
2753
|
-
readonly
|
|
2754
|
-
readonly
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
readonly
|
|
2759
|
-
readonly
|
|
2760
|
-
readonly
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
readonly
|
|
2767
|
-
readonly
|
|
2768
|
-
readonly
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
readonly
|
|
2774
|
-
readonly
|
|
2775
|
-
readonly
|
|
2776
|
-
readonly
|
|
2776
|
+
export declare const CreateRecurringAssignmentRequestV1: Schema.Struct<{
|
|
2777
|
+
readonly frequency: Schema.optionalKey<Schema.Never>;
|
|
2778
|
+
readonly interval: Schema.optionalKey<Schema.Number>;
|
|
2779
|
+
readonly monthlyRecurringType: Schema.optionalKey<Schema.Never>;
|
|
2780
|
+
readonly occurrences: Schema.optionalKey<Schema.Number>;
|
|
2781
|
+
readonly recurringEndType: Schema.optionalKey<Schema.Never>;
|
|
2782
|
+
readonly repeat: Schema.optionalKey<Schema.Boolean>;
|
|
2783
|
+
readonly until: Schema.optionalKey<Schema.String>;
|
|
2784
|
+
readonly weeks: Schema.optionalKey<Schema.Number>;
|
|
2785
|
+
}>;
|
|
2786
|
+
export type RecurringAssignmentDtoV1 = {
|
|
2787
|
+
readonly "frequency": RecurringFrequency;
|
|
2788
|
+
readonly "interval"?: number;
|
|
2789
|
+
readonly "monthlyRecurringType"?: MonthlyRecurringType;
|
|
2790
|
+
readonly "occurrences"?: number;
|
|
2791
|
+
readonly "repeat"?: boolean;
|
|
2792
|
+
readonly "seriesId"?: string;
|
|
2793
|
+
readonly "until"?: string;
|
|
2794
|
+
readonly "weeks"?: number;
|
|
2795
|
+
};
|
|
2796
|
+
export declare const RecurringAssignmentDtoV1: Schema.Struct<{
|
|
2797
|
+
readonly frequency: Schema.Never;
|
|
2798
|
+
readonly interval: Schema.optionalKey<Schema.Number>;
|
|
2799
|
+
readonly monthlyRecurringType: Schema.optionalKey<Schema.Never>;
|
|
2800
|
+
readonly occurrences: Schema.optionalKey<Schema.Number>;
|
|
2801
|
+
readonly repeat: Schema.optionalKey<Schema.Boolean>;
|
|
2802
|
+
readonly seriesId: Schema.optionalKey<Schema.String>;
|
|
2803
|
+
readonly until: Schema.optionalKey<Schema.String>;
|
|
2804
|
+
readonly weeks: Schema.optionalKey<Schema.Number>;
|
|
2805
|
+
}>;
|
|
2806
|
+
export type RecurringAssignmentRequestV1 = {
|
|
2807
|
+
readonly "frequency"?: RecurringFrequency;
|
|
2808
|
+
readonly "interval"?: number;
|
|
2809
|
+
readonly "monthlyRecurringType"?: MonthlyRecurringType;
|
|
2810
|
+
readonly "occurrences"?: number;
|
|
2811
|
+
readonly "recurringEndType"?: RecurringEndType;
|
|
2812
|
+
readonly "repeat"?: boolean;
|
|
2813
|
+
readonly "until"?: string;
|
|
2814
|
+
readonly "weeks"?: number;
|
|
2815
|
+
};
|
|
2816
|
+
export declare const RecurringAssignmentRequestV1: Schema.Struct<{
|
|
2817
|
+
readonly frequency: Schema.optionalKey<Schema.Never>;
|
|
2818
|
+
readonly interval: Schema.optionalKey<Schema.Number>;
|
|
2819
|
+
readonly monthlyRecurringType: Schema.optionalKey<Schema.Never>;
|
|
2820
|
+
readonly occurrences: Schema.optionalKey<Schema.Number>;
|
|
2821
|
+
readonly recurringEndType: Schema.optionalKey<Schema.Never>;
|
|
2822
|
+
readonly repeat: Schema.optionalKey<Schema.Boolean>;
|
|
2823
|
+
readonly until: Schema.optionalKey<Schema.String>;
|
|
2824
|
+
readonly weeks: Schema.optionalKey<Schema.Number>;
|
|
2777
2825
|
}>;
|
|
2778
2826
|
export type UserSettingsDtoV1 = {
|
|
2779
2827
|
readonly "alerts"?: boolean;
|
|
@@ -4108,7 +4156,9 @@ export type PolicyDtoV1 = {
|
|
|
4108
4156
|
readonly "archived"?: boolean;
|
|
4109
4157
|
readonly "automaticAccrual"?: AutomaticAccrualDto;
|
|
4110
4158
|
readonly "automaticTimeEntryCreation"?: AutomaticTimeEntryCreationDto;
|
|
4159
|
+
readonly "color"?: string;
|
|
4111
4160
|
readonly "everyoneIncludingNew"?: boolean;
|
|
4161
|
+
readonly "icon"?: "UMBRELLA" | "SNOWFLAKE" | "FAMILY" | "PLANE" | "STETHOSCOPE" | "HEALTH_METRICS" | "CHILDCARE" | "LUGGAGE" | "MONETIZATION" | "CALENDAR";
|
|
4112
4162
|
readonly "id"?: string;
|
|
4113
4163
|
readonly "name"?: string;
|
|
4114
4164
|
readonly "negativeBalance"?: NegativeBalanceDto;
|
|
@@ -4140,7 +4190,9 @@ export declare const PolicyDtoV1: Schema.Struct<{
|
|
|
4140
4190
|
}>>;
|
|
4141
4191
|
readonly enabled: Schema.optionalKey<Schema.Boolean>;
|
|
4142
4192
|
}>>;
|
|
4193
|
+
readonly color: Schema.optionalKey<Schema.String>;
|
|
4143
4194
|
readonly everyoneIncludingNew: Schema.optionalKey<Schema.Boolean>;
|
|
4195
|
+
readonly icon: Schema.optionalKey<Schema.Literals<readonly ["UMBRELLA", "SNOWFLAKE", "FAMILY", "PLANE", "STETHOSCOPE", "HEALTH_METRICS", "CHILDCARE", "LUGGAGE", "MONETIZATION", "CALENDAR"]>>;
|
|
4144
4196
|
readonly id: Schema.optionalKey<Schema.String>;
|
|
4145
4197
|
readonly name: Schema.optionalKey<Schema.String>;
|
|
4146
4198
|
readonly negativeBalance: Schema.optionalKey<Schema.Struct<{
|
|
@@ -4222,7 +4274,6 @@ export declare const CreatePolicyRequestV1: Schema.Struct<{
|
|
|
4222
4274
|
readonly automaticAccrual: Schema.optionalKey<Schema.Struct<{
|
|
4223
4275
|
readonly amount: Schema.Number;
|
|
4224
4276
|
readonly period: Schema.optionalKey<Schema.Literals<readonly ["MONTH", "YEAR"]>>;
|
|
4225
|
-
readonly timeUnit: Schema.optionalKey<Schema.Literals<readonly ["DAYS", "HOURS"]>>;
|
|
4226
4277
|
}>>;
|
|
4227
4278
|
readonly automaticTimeEntryCreation: Schema.optionalKey<Schema.Struct<{
|
|
4228
4279
|
readonly defaultEntities: Schema.Struct<{
|
|
@@ -4304,8 +4355,8 @@ export type UpdatePolicyRequestV1 = {
|
|
|
4304
4355
|
readonly "icon"?: "UMBRELLA" | "SNOWFLAKE" | "FAMILY" | "PLANE" | "STETHOSCOPE" | "HEALTH_METRICS" | "CHILDCARE" | "LUGGAGE" | "MONETIZATION" | "CALENDAR";
|
|
4305
4356
|
readonly "name": string;
|
|
4306
4357
|
readonly "negativeBalance"?: NegativeBalanceRequest;
|
|
4307
|
-
readonly "userGroups"
|
|
4308
|
-
readonly "users"
|
|
4358
|
+
readonly "userGroups"?: UserGroupIdsSchema;
|
|
4359
|
+
readonly "users"?: UserIdsSchema;
|
|
4309
4360
|
};
|
|
4310
4361
|
export declare const UpdatePolicyRequestV1: Schema.Struct<{
|
|
4311
4362
|
readonly allowHalfDay: Schema.Boolean;
|
|
@@ -4320,7 +4371,6 @@ export declare const UpdatePolicyRequestV1: Schema.Struct<{
|
|
|
4320
4371
|
readonly automaticAccrual: Schema.optionalKey<Schema.Struct<{
|
|
4321
4372
|
readonly amount: Schema.Number;
|
|
4322
4373
|
readonly period: Schema.optionalKey<Schema.Literals<readonly ["MONTH", "YEAR"]>>;
|
|
4323
|
-
readonly timeUnit: Schema.optionalKey<Schema.Literals<readonly ["DAYS", "HOURS"]>>;
|
|
4324
4374
|
}>>;
|
|
4325
4375
|
readonly automaticTimeEntryCreation: Schema.optionalKey<Schema.Struct<{
|
|
4326
4376
|
readonly defaultEntities: Schema.Struct<{
|
|
@@ -4339,16 +4389,16 @@ export declare const UpdatePolicyRequestV1: Schema.Struct<{
|
|
|
4339
4389
|
readonly period: Schema.optionalKey<Schema.Literals<readonly ["MONTH", "YEAR"]>>;
|
|
4340
4390
|
readonly shouldReset: Schema.optionalKey<Schema.Boolean>;
|
|
4341
4391
|
}>>;
|
|
4342
|
-
readonly userGroups: Schema.Struct<{
|
|
4392
|
+
readonly userGroups: Schema.optionalKey<Schema.Struct<{
|
|
4343
4393
|
readonly contains: Schema.optionalKey<Schema.Literals<readonly ["CONTAINS", "DOES_NOT_CONTAIN"]>>;
|
|
4344
4394
|
readonly ids: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
4345
4395
|
readonly status: Schema.optionalKey<Schema.Literals<readonly ["ALL", "ACTIVE", "INACTIVE"]>>;
|
|
4346
|
-
}
|
|
4347
|
-
readonly users: Schema.Struct<{
|
|
4396
|
+
}>>;
|
|
4397
|
+
readonly users: Schema.optionalKey<Schema.Struct<{
|
|
4348
4398
|
readonly contains: Schema.optionalKey<Schema.Literals<readonly ["CONTAINS", "DOES_NOT_CONTAIN"]>>;
|
|
4349
4399
|
readonly ids: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
4350
4400
|
readonly status: Schema.optionalKey<Schema.Literals<readonly ["ALL", "ACTIVE", "INACTIVE"]>>;
|
|
4351
|
-
}
|
|
4401
|
+
}>>;
|
|
4352
4402
|
}>;
|
|
4353
4403
|
export type WorkspaceSettingsDtoV1 = {
|
|
4354
4404
|
readonly "activeBillableHours"?: boolean;
|
|
@@ -4794,6 +4844,88 @@ export declare const ProjectDtoV1: Schema.Struct<{
|
|
|
4794
4844
|
}>>;
|
|
4795
4845
|
readonly workspaceId: Schema.String;
|
|
4796
4846
|
}>;
|
|
4847
|
+
export type AssignmentCreateRequestV1 = {
|
|
4848
|
+
readonly "billable"?: boolean;
|
|
4849
|
+
readonly "end": string;
|
|
4850
|
+
readonly "hoursPerDay": number;
|
|
4851
|
+
readonly "includeNonWorkingDays"?: boolean;
|
|
4852
|
+
readonly "note"?: string;
|
|
4853
|
+
readonly "projectId": string;
|
|
4854
|
+
readonly "recurringAssignment"?: CreateRecurringAssignmentRequestV1;
|
|
4855
|
+
readonly "start": string;
|
|
4856
|
+
readonly "startTime"?: string;
|
|
4857
|
+
readonly "taskId"?: string;
|
|
4858
|
+
readonly "userId": string;
|
|
4859
|
+
};
|
|
4860
|
+
export declare const AssignmentCreateRequestV1: Schema.Struct<{
|
|
4861
|
+
readonly billable: Schema.optionalKey<Schema.Boolean>;
|
|
4862
|
+
readonly end: Schema.String;
|
|
4863
|
+
readonly hoursPerDay: Schema.Number;
|
|
4864
|
+
readonly includeNonWorkingDays: Schema.optionalKey<Schema.Boolean>;
|
|
4865
|
+
readonly note: Schema.optionalKey<Schema.String>;
|
|
4866
|
+
readonly projectId: Schema.String;
|
|
4867
|
+
readonly recurringAssignment: Schema.optionalKey<Schema.Struct<{
|
|
4868
|
+
readonly frequency: Schema.optionalKey<Schema.Never>;
|
|
4869
|
+
readonly interval: Schema.optionalKey<Schema.Number>;
|
|
4870
|
+
readonly monthlyRecurringType: Schema.optionalKey<Schema.Never>;
|
|
4871
|
+
readonly occurrences: Schema.optionalKey<Schema.Number>;
|
|
4872
|
+
readonly recurringEndType: Schema.optionalKey<Schema.Never>;
|
|
4873
|
+
readonly repeat: Schema.optionalKey<Schema.Boolean>;
|
|
4874
|
+
readonly until: Schema.optionalKey<Schema.String>;
|
|
4875
|
+
readonly weeks: Schema.optionalKey<Schema.Number>;
|
|
4876
|
+
}>>;
|
|
4877
|
+
readonly start: Schema.String;
|
|
4878
|
+
readonly startTime: Schema.optionalKey<Schema.String>;
|
|
4879
|
+
readonly taskId: Schema.optionalKey<Schema.String>;
|
|
4880
|
+
readonly userId: Schema.String;
|
|
4881
|
+
}>;
|
|
4882
|
+
export type AssignmentDtoV1 = {
|
|
4883
|
+
readonly "billable"?: boolean;
|
|
4884
|
+
readonly "excludeDays"?: ReadonlyArray<SchedulingExcludeDay>;
|
|
4885
|
+
readonly "hoursPerDay"?: number;
|
|
4886
|
+
readonly "id"?: string;
|
|
4887
|
+
readonly "includeNonWorkingDays"?: boolean;
|
|
4888
|
+
readonly "note"?: string;
|
|
4889
|
+
readonly "period"?: DateRangeDto;
|
|
4890
|
+
readonly "projectId"?: string;
|
|
4891
|
+
readonly "published"?: boolean;
|
|
4892
|
+
readonly "recurring"?: RecurringAssignmentDtoV1;
|
|
4893
|
+
readonly "startTime"?: string;
|
|
4894
|
+
readonly "taskId"?: string;
|
|
4895
|
+
readonly "userId"?: string;
|
|
4896
|
+
readonly "workspaceId"?: string;
|
|
4897
|
+
};
|
|
4898
|
+
export declare const AssignmentDtoV1: Schema.Struct<{
|
|
4899
|
+
readonly billable: Schema.optionalKey<Schema.Boolean>;
|
|
4900
|
+
readonly excludeDays: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
4901
|
+
readonly date: Schema.optionalKey<Schema.String>;
|
|
4902
|
+
readonly type: Schema.optionalKey<Schema.Literals<readonly ["WEEKEND", "HOLIDAY", "TIME_OFF"]>>;
|
|
4903
|
+
}>>>;
|
|
4904
|
+
readonly hoursPerDay: Schema.optionalKey<Schema.Number>;
|
|
4905
|
+
readonly id: Schema.optionalKey<Schema.String>;
|
|
4906
|
+
readonly includeNonWorkingDays: Schema.optionalKey<Schema.Boolean>;
|
|
4907
|
+
readonly note: Schema.optionalKey<Schema.String>;
|
|
4908
|
+
readonly period: Schema.optionalKey<Schema.Struct<{
|
|
4909
|
+
readonly end: Schema.optionalKey<Schema.String>;
|
|
4910
|
+
readonly start: Schema.optionalKey<Schema.String>;
|
|
4911
|
+
}>>;
|
|
4912
|
+
readonly projectId: Schema.optionalKey<Schema.String>;
|
|
4913
|
+
readonly published: Schema.optionalKey<Schema.Boolean>;
|
|
4914
|
+
readonly recurring: Schema.optionalKey<Schema.Struct<{
|
|
4915
|
+
readonly frequency: Schema.Never;
|
|
4916
|
+
readonly interval: Schema.optionalKey<Schema.Number>;
|
|
4917
|
+
readonly monthlyRecurringType: Schema.optionalKey<Schema.Never>;
|
|
4918
|
+
readonly occurrences: Schema.optionalKey<Schema.Number>;
|
|
4919
|
+
readonly repeat: Schema.optionalKey<Schema.Boolean>;
|
|
4920
|
+
readonly seriesId: Schema.optionalKey<Schema.String>;
|
|
4921
|
+
readonly until: Schema.optionalKey<Schema.String>;
|
|
4922
|
+
readonly weeks: Schema.optionalKey<Schema.Number>;
|
|
4923
|
+
}>>;
|
|
4924
|
+
readonly startTime: Schema.optionalKey<Schema.String>;
|
|
4925
|
+
readonly taskId: Schema.optionalKey<Schema.String>;
|
|
4926
|
+
readonly userId: Schema.optionalKey<Schema.String>;
|
|
4927
|
+
readonly workspaceId: Schema.optionalKey<Schema.String>;
|
|
4928
|
+
}>;
|
|
4797
4929
|
export type UserDtoV1 = {
|
|
4798
4930
|
readonly "activeWorkspace"?: string;
|
|
4799
4931
|
readonly "customFields"?: ReadonlyArray<UserCustomFieldValueDtoV1>;
|
|
@@ -4950,6 +5082,7 @@ export declare const ApprovalDetailsDtoV1: Schema.Struct<{
|
|
|
4950
5082
|
readonly updatedBy: Schema.optionalKey<Schema.String>;
|
|
4951
5083
|
readonly updatedByUserName: Schema.optionalKey<Schema.String>;
|
|
4952
5084
|
}>>;
|
|
5085
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
4953
5086
|
readonly workspaceId: Schema.optionalKey<Schema.String>;
|
|
4954
5087
|
}>>;
|
|
4955
5088
|
readonly approvedTime: Schema.optionalKey<Schema.String>;
|
|
@@ -6858,6 +6991,7 @@ export type GetApprovalRequestsParams = {
|
|
|
6858
6991
|
readonly "sort-order"?: "ASCENDING" | "DESCENDING";
|
|
6859
6992
|
readonly "page"?: number;
|
|
6860
6993
|
readonly "page-size"?: number;
|
|
6994
|
+
readonly "types"?: ReadonlyArray<"TIMESHEET" | "EXPENSE" | "TIMESHEET_AND_EXPENSE">;
|
|
6861
6995
|
};
|
|
6862
6996
|
export declare const GetApprovalRequestsParams: Schema.Struct<{
|
|
6863
6997
|
readonly status: Schema.optionalKey<Schema.Literals<readonly ["PENDING", "APPROVED", "WITHDRAWN_APPROVAL"]>>;
|
|
@@ -6865,6 +6999,7 @@ export declare const GetApprovalRequestsParams: Schema.Struct<{
|
|
|
6865
6999
|
readonly "sort-order": Schema.optionalKey<Schema.Literals<readonly ["ASCENDING", "DESCENDING"]>>;
|
|
6866
7000
|
readonly page: Schema.optionalKey<Schema.Number>;
|
|
6867
7001
|
readonly "page-size": Schema.optionalKey<Schema.Number>;
|
|
7002
|
+
readonly types: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["TIMESHEET", "EXPENSE", "TIMESHEET_AND_EXPENSE"]>>>;
|
|
6868
7003
|
}>;
|
|
6869
7004
|
export type GetApprovalRequests200 = ReadonlyArray<ApprovalDetailsDtoV1>;
|
|
6870
7005
|
export declare const GetApprovalRequests200: Schema.$Array<Schema.Struct<{
|
|
@@ -6892,6 +7027,7 @@ export declare const GetApprovalRequests200: Schema.$Array<Schema.Struct<{
|
|
|
6892
7027
|
readonly updatedBy: Schema.optionalKey<Schema.String>;
|
|
6893
7028
|
readonly updatedByUserName: Schema.optionalKey<Schema.String>;
|
|
6894
7029
|
}>>;
|
|
7030
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
6895
7031
|
readonly workspaceId: Schema.optionalKey<Schema.String>;
|
|
6896
7032
|
}>>;
|
|
6897
7033
|
readonly approvedTime: Schema.optionalKey<Schema.String>;
|
|
@@ -6995,6 +7131,7 @@ export type CreateApprrovalRequestRequestJson = CreateApprovalRequest;
|
|
|
6995
7131
|
export declare const CreateApprrovalRequestRequestJson: Schema.Struct<{
|
|
6996
7132
|
readonly period: Schema.optionalKey<Schema.Literals<readonly ["WEEKLY", "SEMI_MONTHLY", "MONTHLY"]>>;
|
|
6997
7133
|
readonly periodStart: Schema.String;
|
|
7134
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
6998
7135
|
}>;
|
|
6999
7136
|
export type CreateApprrovalRequest201 = ApprovalRequestDtoV1;
|
|
7000
7137
|
export declare const CreateApprrovalRequest201: Schema.Struct<{
|
|
@@ -7021,20 +7158,23 @@ export declare const CreateApprrovalRequest201: Schema.Struct<{
|
|
|
7021
7158
|
readonly updatedBy: Schema.optionalKey<Schema.String>;
|
|
7022
7159
|
readonly updatedByUserName: Schema.optionalKey<Schema.String>;
|
|
7023
7160
|
}>>;
|
|
7161
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
7024
7162
|
readonly workspaceId: Schema.optionalKey<Schema.String>;
|
|
7025
7163
|
}>;
|
|
7026
7164
|
export type ResubmitApprovalRequestRequestJson = CreateApprovalRequest;
|
|
7027
7165
|
export declare const ResubmitApprovalRequestRequestJson: Schema.Struct<{
|
|
7028
7166
|
readonly period: Schema.optionalKey<Schema.Literals<readonly ["WEEKLY", "SEMI_MONTHLY", "MONTHLY"]>>;
|
|
7029
7167
|
readonly periodStart: Schema.String;
|
|
7168
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
7030
7169
|
}>;
|
|
7031
|
-
export type
|
|
7032
|
-
export declare const
|
|
7170
|
+
export type CreateApprovalForOtherDeprecatedRequestJson = CreateApprovalRequest;
|
|
7171
|
+
export declare const CreateApprovalForOtherDeprecatedRequestJson: Schema.Struct<{
|
|
7033
7172
|
readonly period: Schema.optionalKey<Schema.Literals<readonly ["WEEKLY", "SEMI_MONTHLY", "MONTHLY"]>>;
|
|
7034
7173
|
readonly periodStart: Schema.String;
|
|
7174
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
7035
7175
|
}>;
|
|
7036
|
-
export type
|
|
7037
|
-
export declare const
|
|
7176
|
+
export type CreateApprovalForOtherDeprecated201 = ApprovalRequestDtoV1;
|
|
7177
|
+
export declare const CreateApprovalForOtherDeprecated201: Schema.Struct<{
|
|
7038
7178
|
readonly creator: Schema.optionalKey<Schema.Struct<{
|
|
7039
7179
|
readonly userEmail: Schema.optionalKey<Schema.String>;
|
|
7040
7180
|
readonly userId: Schema.optionalKey<Schema.String>;
|
|
@@ -7058,12 +7198,47 @@ export declare const CreateApprovalForOther201: Schema.Struct<{
|
|
|
7058
7198
|
readonly updatedBy: Schema.optionalKey<Schema.String>;
|
|
7059
7199
|
readonly updatedByUserName: Schema.optionalKey<Schema.String>;
|
|
7060
7200
|
}>>;
|
|
7201
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
7061
7202
|
readonly workspaceId: Schema.optionalKey<Schema.String>;
|
|
7062
7203
|
}>;
|
|
7063
7204
|
export type ResubmitApprovalRequestForOtherRequestJson = CreateApprovalRequest;
|
|
7064
7205
|
export declare const ResubmitApprovalRequestForOtherRequestJson: Schema.Struct<{
|
|
7065
7206
|
readonly period: Schema.optionalKey<Schema.Literals<readonly ["WEEKLY", "SEMI_MONTHLY", "MONTHLY"]>>;
|
|
7066
7207
|
readonly periodStart: Schema.String;
|
|
7208
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
7209
|
+
}>;
|
|
7210
|
+
export type CreateApprovalForOtherWithTypeRequestJson = CreateApprovalRequestNoType;
|
|
7211
|
+
export declare const CreateApprovalForOtherWithTypeRequestJson: Schema.Struct<{
|
|
7212
|
+
readonly period: Schema.optionalKey<Schema.Literals<readonly ["WEEKLY", "SEMI_MONTHLY", "MONTHLY"]>>;
|
|
7213
|
+
readonly periodStart: Schema.String;
|
|
7214
|
+
}>;
|
|
7215
|
+
export type CreateApprovalForOtherWithType201 = ApprovalRequestDtoV1;
|
|
7216
|
+
export declare const CreateApprovalForOtherWithType201: Schema.Struct<{
|
|
7217
|
+
readonly creator: Schema.optionalKey<Schema.Struct<{
|
|
7218
|
+
readonly userEmail: Schema.optionalKey<Schema.String>;
|
|
7219
|
+
readonly userId: Schema.optionalKey<Schema.String>;
|
|
7220
|
+
readonly userName: Schema.optionalKey<Schema.String>;
|
|
7221
|
+
}>>;
|
|
7222
|
+
readonly dateRange: Schema.optionalKey<Schema.Struct<{
|
|
7223
|
+
readonly end: Schema.optionalKey<Schema.String>;
|
|
7224
|
+
readonly start: Schema.optionalKey<Schema.String>;
|
|
7225
|
+
}>>;
|
|
7226
|
+
readonly id: Schema.optionalKey<Schema.String>;
|
|
7227
|
+
readonly owner: Schema.optionalKey<Schema.Struct<{
|
|
7228
|
+
readonly startOfWeek: Schema.optionalKey<Schema.Literals<readonly ["MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY", "SATURDAY", "SUNDAY"]>>;
|
|
7229
|
+
readonly timeZone: Schema.optionalKey<Schema.String>;
|
|
7230
|
+
readonly userId: Schema.optionalKey<Schema.String>;
|
|
7231
|
+
readonly userName: Schema.optionalKey<Schema.String>;
|
|
7232
|
+
}>>;
|
|
7233
|
+
readonly status: Schema.optionalKey<Schema.Struct<{
|
|
7234
|
+
readonly note: Schema.optionalKey<Schema.String>;
|
|
7235
|
+
readonly state: Schema.optionalKey<Schema.Literals<readonly ["PENDING", "APPROVED", "WITHDRAWN_SUBMISSION", "WITHDRAWN_APPROVAL", "REJECTED"]>>;
|
|
7236
|
+
readonly updatedAt: Schema.optionalKey<Schema.String>;
|
|
7237
|
+
readonly updatedBy: Schema.optionalKey<Schema.String>;
|
|
7238
|
+
readonly updatedByUserName: Schema.optionalKey<Schema.String>;
|
|
7239
|
+
}>>;
|
|
7240
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
7241
|
+
readonly workspaceId: Schema.optionalKey<Schema.String>;
|
|
7067
7242
|
}>;
|
|
7068
7243
|
export type UpdateApprovalStatusRequestJson = UpdateApprovalRequest;
|
|
7069
7244
|
export declare const UpdateApprovalStatusRequestJson: Schema.Struct<{
|
|
@@ -7095,6 +7270,40 @@ export declare const UpdateApprovalStatus200: Schema.Struct<{
|
|
|
7095
7270
|
readonly updatedBy: Schema.optionalKey<Schema.String>;
|
|
7096
7271
|
readonly updatedByUserName: Schema.optionalKey<Schema.String>;
|
|
7097
7272
|
}>>;
|
|
7273
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
7274
|
+
readonly workspaceId: Schema.optionalKey<Schema.String>;
|
|
7275
|
+
}>;
|
|
7276
|
+
export type CreateApprrovalRequest1RequestJson = CreateApprovalRequestNoType;
|
|
7277
|
+
export declare const CreateApprrovalRequest1RequestJson: Schema.Struct<{
|
|
7278
|
+
readonly period: Schema.optionalKey<Schema.Literals<readonly ["WEEKLY", "SEMI_MONTHLY", "MONTHLY"]>>;
|
|
7279
|
+
readonly periodStart: Schema.String;
|
|
7280
|
+
}>;
|
|
7281
|
+
export type CreateApprrovalRequest1201 = ApprovalRequestDtoV1;
|
|
7282
|
+
export declare const CreateApprrovalRequest1201: Schema.Struct<{
|
|
7283
|
+
readonly creator: Schema.optionalKey<Schema.Struct<{
|
|
7284
|
+
readonly userEmail: Schema.optionalKey<Schema.String>;
|
|
7285
|
+
readonly userId: Schema.optionalKey<Schema.String>;
|
|
7286
|
+
readonly userName: Schema.optionalKey<Schema.String>;
|
|
7287
|
+
}>>;
|
|
7288
|
+
readonly dateRange: Schema.optionalKey<Schema.Struct<{
|
|
7289
|
+
readonly end: Schema.optionalKey<Schema.String>;
|
|
7290
|
+
readonly start: Schema.optionalKey<Schema.String>;
|
|
7291
|
+
}>>;
|
|
7292
|
+
readonly id: Schema.optionalKey<Schema.String>;
|
|
7293
|
+
readonly owner: Schema.optionalKey<Schema.Struct<{
|
|
7294
|
+
readonly startOfWeek: Schema.optionalKey<Schema.Literals<readonly ["MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY", "SATURDAY", "SUNDAY"]>>;
|
|
7295
|
+
readonly timeZone: Schema.optionalKey<Schema.String>;
|
|
7296
|
+
readonly userId: Schema.optionalKey<Schema.String>;
|
|
7297
|
+
readonly userName: Schema.optionalKey<Schema.String>;
|
|
7298
|
+
}>>;
|
|
7299
|
+
readonly status: Schema.optionalKey<Schema.Struct<{
|
|
7300
|
+
readonly note: Schema.optionalKey<Schema.String>;
|
|
7301
|
+
readonly state: Schema.optionalKey<Schema.Literals<readonly ["PENDING", "APPROVED", "WITHDRAWN_SUBMISSION", "WITHDRAWN_APPROVAL", "REJECTED"]>>;
|
|
7302
|
+
readonly updatedAt: Schema.optionalKey<Schema.String>;
|
|
7303
|
+
readonly updatedBy: Schema.optionalKey<Schema.String>;
|
|
7304
|
+
readonly updatedByUserName: Schema.optionalKey<Schema.String>;
|
|
7305
|
+
}>>;
|
|
7306
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
7098
7307
|
readonly workspaceId: Schema.optionalKey<Schema.String>;
|
|
7099
7308
|
}>;
|
|
7100
7309
|
export type GetClientsParams = {
|
|
@@ -9978,8 +10187,14 @@ export declare const CreateRecurringRequestJson: Schema.Struct<{
|
|
|
9978
10187
|
readonly note: Schema.optionalKey<Schema.String>;
|
|
9979
10188
|
readonly projectId: Schema.String;
|
|
9980
10189
|
readonly recurringAssignment: Schema.optionalKey<Schema.Struct<{
|
|
10190
|
+
readonly frequency: Schema.optionalKey<Schema.Never>;
|
|
10191
|
+
readonly interval: Schema.optionalKey<Schema.Number>;
|
|
10192
|
+
readonly monthlyRecurringType: Schema.optionalKey<Schema.Never>;
|
|
10193
|
+
readonly occurrences: Schema.optionalKey<Schema.Number>;
|
|
10194
|
+
readonly recurringEndType: Schema.optionalKey<Schema.Never>;
|
|
9981
10195
|
readonly repeat: Schema.optionalKey<Schema.Boolean>;
|
|
9982
|
-
readonly
|
|
10196
|
+
readonly until: Schema.optionalKey<Schema.String>;
|
|
10197
|
+
readonly weeks: Schema.optionalKey<Schema.Number>;
|
|
9983
10198
|
}>>;
|
|
9984
10199
|
readonly start: Schema.String;
|
|
9985
10200
|
readonly startTime: Schema.optionalKey<Schema.String>;
|
|
@@ -10004,8 +10219,13 @@ export declare const CreateRecurring201: Schema.$Array<Schema.Struct<{
|
|
|
10004
10219
|
readonly projectId: Schema.optionalKey<Schema.String>;
|
|
10005
10220
|
readonly published: Schema.optionalKey<Schema.Boolean>;
|
|
10006
10221
|
readonly recurring: Schema.optionalKey<Schema.Struct<{
|
|
10222
|
+
readonly frequency: Schema.Never;
|
|
10223
|
+
readonly interval: Schema.optionalKey<Schema.Number>;
|
|
10224
|
+
readonly monthlyRecurringType: Schema.optionalKey<Schema.Never>;
|
|
10225
|
+
readonly occurrences: Schema.optionalKey<Schema.Number>;
|
|
10007
10226
|
readonly repeat: Schema.optionalKey<Schema.Boolean>;
|
|
10008
10227
|
readonly seriesId: Schema.optionalKey<Schema.String>;
|
|
10228
|
+
readonly until: Schema.optionalKey<Schema.String>;
|
|
10009
10229
|
readonly weeks: Schema.optionalKey<Schema.Number>;
|
|
10010
10230
|
}>>;
|
|
10011
10231
|
readonly startTime: Schema.optionalKey<Schema.String>;
|
|
@@ -10037,8 +10257,13 @@ export declare const DeleteRRecurringAssignment200: Schema.$Array<Schema.Struct<
|
|
|
10037
10257
|
readonly projectId: Schema.optionalKey<Schema.String>;
|
|
10038
10258
|
readonly published: Schema.optionalKey<Schema.Boolean>;
|
|
10039
10259
|
readonly recurring: Schema.optionalKey<Schema.Struct<{
|
|
10260
|
+
readonly frequency: Schema.Never;
|
|
10261
|
+
readonly interval: Schema.optionalKey<Schema.Number>;
|
|
10262
|
+
readonly monthlyRecurringType: Schema.optionalKey<Schema.Never>;
|
|
10263
|
+
readonly occurrences: Schema.optionalKey<Schema.Number>;
|
|
10040
10264
|
readonly repeat: Schema.optionalKey<Schema.Boolean>;
|
|
10041
10265
|
readonly seriesId: Schema.optionalKey<Schema.String>;
|
|
10266
|
+
readonly until: Schema.optionalKey<Schema.String>;
|
|
10042
10267
|
readonly weeks: Schema.optionalKey<Schema.Number>;
|
|
10043
10268
|
}>>;
|
|
10044
10269
|
readonly startTime: Schema.optionalKey<Schema.String>;
|
|
@@ -10076,8 +10301,13 @@ export declare const EditRecurring200: Schema.$Array<Schema.Struct<{
|
|
|
10076
10301
|
readonly projectId: Schema.optionalKey<Schema.String>;
|
|
10077
10302
|
readonly published: Schema.optionalKey<Schema.Boolean>;
|
|
10078
10303
|
readonly recurring: Schema.optionalKey<Schema.Struct<{
|
|
10304
|
+
readonly frequency: Schema.Never;
|
|
10305
|
+
readonly interval: Schema.optionalKey<Schema.Number>;
|
|
10306
|
+
readonly monthlyRecurringType: Schema.optionalKey<Schema.Never>;
|
|
10307
|
+
readonly occurrences: Schema.optionalKey<Schema.Number>;
|
|
10079
10308
|
readonly repeat: Schema.optionalKey<Schema.Boolean>;
|
|
10080
10309
|
readonly seriesId: Schema.optionalKey<Schema.String>;
|
|
10310
|
+
readonly until: Schema.optionalKey<Schema.String>;
|
|
10081
10311
|
readonly weeks: Schema.optionalKey<Schema.Number>;
|
|
10082
10312
|
}>>;
|
|
10083
10313
|
readonly startTime: Schema.optionalKey<Schema.String>;
|
|
@@ -10087,8 +10317,14 @@ export declare const EditRecurring200: Schema.$Array<Schema.Struct<{
|
|
|
10087
10317
|
}>>;
|
|
10088
10318
|
export type EditRecurringPeriodRequestJson = RecurringAssignmentRequestV1;
|
|
10089
10319
|
export declare const EditRecurringPeriodRequestJson: Schema.Struct<{
|
|
10320
|
+
readonly frequency: Schema.optionalKey<Schema.Never>;
|
|
10321
|
+
readonly interval: Schema.optionalKey<Schema.Number>;
|
|
10322
|
+
readonly monthlyRecurringType: Schema.optionalKey<Schema.Never>;
|
|
10323
|
+
readonly occurrences: Schema.optionalKey<Schema.Number>;
|
|
10324
|
+
readonly recurringEndType: Schema.optionalKey<Schema.Never>;
|
|
10090
10325
|
readonly repeat: Schema.optionalKey<Schema.Boolean>;
|
|
10091
|
-
readonly
|
|
10326
|
+
readonly until: Schema.optionalKey<Schema.String>;
|
|
10327
|
+
readonly weeks: Schema.optionalKey<Schema.Number>;
|
|
10092
10328
|
}>;
|
|
10093
10329
|
export type EditRecurringPeriod200 = ReadonlyArray<AssignmentDtoV1>;
|
|
10094
10330
|
export declare const EditRecurringPeriod200: Schema.$Array<Schema.Struct<{
|
|
@@ -10108,8 +10344,13 @@ export declare const EditRecurringPeriod200: Schema.$Array<Schema.Struct<{
|
|
|
10108
10344
|
readonly projectId: Schema.optionalKey<Schema.String>;
|
|
10109
10345
|
readonly published: Schema.optionalKey<Schema.Boolean>;
|
|
10110
10346
|
readonly recurring: Schema.optionalKey<Schema.Struct<{
|
|
10347
|
+
readonly frequency: Schema.Never;
|
|
10348
|
+
readonly interval: Schema.optionalKey<Schema.Number>;
|
|
10349
|
+
readonly monthlyRecurringType: Schema.optionalKey<Schema.Never>;
|
|
10350
|
+
readonly occurrences: Schema.optionalKey<Schema.Number>;
|
|
10111
10351
|
readonly repeat: Schema.optionalKey<Schema.Boolean>;
|
|
10112
10352
|
readonly seriesId: Schema.optionalKey<Schema.String>;
|
|
10353
|
+
readonly until: Schema.optionalKey<Schema.String>;
|
|
10113
10354
|
readonly weeks: Schema.optionalKey<Schema.Number>;
|
|
10114
10355
|
}>>;
|
|
10115
10356
|
readonly startTime: Schema.optionalKey<Schema.String>;
|
|
@@ -10201,8 +10442,13 @@ export declare const CopyAssignment200: Schema.$Array<Schema.Struct<{
|
|
|
10201
10442
|
readonly projectId: Schema.optionalKey<Schema.String>;
|
|
10202
10443
|
readonly published: Schema.optionalKey<Schema.Boolean>;
|
|
10203
10444
|
readonly recurring: Schema.optionalKey<Schema.Struct<{
|
|
10445
|
+
readonly frequency: Schema.Never;
|
|
10446
|
+
readonly interval: Schema.optionalKey<Schema.Number>;
|
|
10447
|
+
readonly monthlyRecurringType: Schema.optionalKey<Schema.Never>;
|
|
10448
|
+
readonly occurrences: Schema.optionalKey<Schema.Number>;
|
|
10204
10449
|
readonly repeat: Schema.optionalKey<Schema.Boolean>;
|
|
10205
10450
|
readonly seriesId: Schema.optionalKey<Schema.String>;
|
|
10451
|
+
readonly until: Schema.optionalKey<Schema.String>;
|
|
10206
10452
|
readonly weeks: Schema.optionalKey<Schema.Number>;
|
|
10207
10453
|
}>>;
|
|
10208
10454
|
readonly startTime: Schema.optionalKey<Schema.String>;
|
|
@@ -10489,6 +10735,45 @@ export declare const CreateTimeEntry201: Schema.Struct<{
|
|
|
10489
10735
|
readonly userId: Schema.String;
|
|
10490
10736
|
readonly workspaceId: Schema.String;
|
|
10491
10737
|
}>;
|
|
10738
|
+
export type GetMultipleTimeEntriesRequestJson = GetTimeEntriesByIdsRequest;
|
|
10739
|
+
export declare const GetMultipleTimeEntriesRequestJson: Schema.Struct<{
|
|
10740
|
+
readonly hydrated: Schema.optionalKey<Schema.Boolean>;
|
|
10741
|
+
readonly timeEntryIds: Schema.$Array<Schema.String>;
|
|
10742
|
+
}>;
|
|
10743
|
+
export type GetMultipleTimeEntries200 = ReadonlyArray<TimeEntryWithRatesDtoV1>;
|
|
10744
|
+
export declare const GetMultipleTimeEntries200: Schema.$Array<Schema.Struct<{
|
|
10745
|
+
readonly billable: Schema.Boolean;
|
|
10746
|
+
readonly costRate: Schema.optionalKey<Schema.Struct<{
|
|
10747
|
+
readonly amount: Schema.optionalKey<Schema.Number>;
|
|
10748
|
+
readonly currency: Schema.optionalKey<Schema.String>;
|
|
10749
|
+
}>>;
|
|
10750
|
+
readonly customFieldValues: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
10751
|
+
readonly customFieldId: Schema.optionalKey<Schema.String>;
|
|
10752
|
+
readonly name: Schema.optionalKey<Schema.String>;
|
|
10753
|
+
readonly timeEntryId: Schema.optionalKey<Schema.String>;
|
|
10754
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
10755
|
+
readonly value: Schema.optionalKey<Schema.Struct<{}>>;
|
|
10756
|
+
}>>>;
|
|
10757
|
+
readonly description: Schema.String;
|
|
10758
|
+
readonly hourlyRate: Schema.optionalKey<Schema.Struct<{
|
|
10759
|
+
readonly amount: Schema.optionalKey<Schema.Number>;
|
|
10760
|
+
readonly currency: Schema.optionalKey<Schema.String>;
|
|
10761
|
+
}>>;
|
|
10762
|
+
readonly id: Schema.String;
|
|
10763
|
+
readonly isLocked: Schema.optionalKey<Schema.Boolean>;
|
|
10764
|
+
readonly kioskId: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
10765
|
+
readonly projectId: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
10766
|
+
readonly tagIds: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
10767
|
+
readonly taskId: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
10768
|
+
readonly timeInterval: Schema.Struct<{
|
|
10769
|
+
readonly duration: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
10770
|
+
readonly end: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
10771
|
+
readonly start: Schema.optionalKey<Schema.String>;
|
|
10772
|
+
}>;
|
|
10773
|
+
readonly type: Schema.optionalKey<Schema.Literals<readonly ["REGULAR", "BREAK", "HOLIDAY", "TIME_OFF"]>>;
|
|
10774
|
+
readonly userId: Schema.String;
|
|
10775
|
+
readonly workspaceId: Schema.String;
|
|
10776
|
+
}>>;
|
|
10492
10777
|
export type UpdateInvoicedStatusRequestJson = UpdateInvoicedStatusRequest;
|
|
10493
10778
|
export declare const UpdateInvoicedStatusRequestJson: Schema.Struct<{
|
|
10494
10779
|
readonly invoiced: Schema.Boolean;
|
|
@@ -10586,6 +10871,30 @@ export declare const UpdateTimeEntry200: Schema.Struct<{
|
|
|
10586
10871
|
readonly userId: Schema.String;
|
|
10587
10872
|
readonly workspaceId: Schema.String;
|
|
10588
10873
|
}>;
|
|
10874
|
+
export type CreateBalanceAssignmentRequestJson = CreateBalanceAssignmentV1Request;
|
|
10875
|
+
export declare const CreateBalanceAssignmentRequestJson: Schema.Struct<{
|
|
10876
|
+
readonly balance: Schema.Number;
|
|
10877
|
+
readonly dateRange: Schema.optionalKey<Schema.Struct<{
|
|
10878
|
+
readonly end: Schema.optionalKey<Schema.String>;
|
|
10879
|
+
readonly start: Schema.optionalKey<Schema.String>;
|
|
10880
|
+
}>>;
|
|
10881
|
+
readonly note: Schema.optionalKey<Schema.String>;
|
|
10882
|
+
readonly policyId: Schema.String;
|
|
10883
|
+
readonly userIds: Schema.$Array<Schema.String>;
|
|
10884
|
+
}>;
|
|
10885
|
+
export type UpdateBalanceAssignmentRequestJson = UpdateBalanceAssignmentV1Request;
|
|
10886
|
+
export declare const UpdateBalanceAssignmentRequestJson: Schema.Struct<{
|
|
10887
|
+
readonly balanceChange: Schema.Number;
|
|
10888
|
+
readonly dateRange: Schema.optionalKey<Schema.Struct<{
|
|
10889
|
+
readonly end: Schema.optionalKey<Schema.String>;
|
|
10890
|
+
readonly start: Schema.optionalKey<Schema.String>;
|
|
10891
|
+
}>>;
|
|
10892
|
+
readonly note: Schema.optionalKey<Schema.String>;
|
|
10893
|
+
}>;
|
|
10894
|
+
export type DeleteBalanceAssignmentRequestJson = DeleteBalanceAssignmentV1Request;
|
|
10895
|
+
export declare const DeleteBalanceAssignmentRequestJson: Schema.Struct<{
|
|
10896
|
+
readonly note: Schema.String;
|
|
10897
|
+
}>;
|
|
10589
10898
|
export type GetBalancesForPolicyParams = {
|
|
10590
10899
|
readonly "page"?: number;
|
|
10591
10900
|
readonly "page-size"?: number;
|
|
@@ -10600,7 +10909,12 @@ export declare const GetBalancesForPolicyParams: Schema.Struct<{
|
|
|
10600
10909
|
}>;
|
|
10601
10910
|
export type UpdateBalanceRequestJson = UpdateBalanceRequestV1;
|
|
10602
10911
|
export declare const UpdateBalanceRequestJson: Schema.Struct<{
|
|
10912
|
+
readonly dateRange: Schema.optionalKey<Schema.Struct<{
|
|
10913
|
+
readonly end: Schema.optionalKey<Schema.String>;
|
|
10914
|
+
readonly start: Schema.optionalKey<Schema.String>;
|
|
10915
|
+
}>>;
|
|
10603
10916
|
readonly note: Schema.optionalKey<Schema.String>;
|
|
10917
|
+
readonly sync: Schema.optionalKey<Schema.Boolean>;
|
|
10604
10918
|
readonly userIds: Schema.$Array<Schema.String>;
|
|
10605
10919
|
readonly value: Schema.Number;
|
|
10606
10920
|
}>;
|
|
@@ -10655,7 +10969,9 @@ export declare const FindPoliciesForWorkspace200: Schema.$Array<Schema.Struct<{
|
|
|
10655
10969
|
}>>;
|
|
10656
10970
|
readonly enabled: Schema.optionalKey<Schema.Boolean>;
|
|
10657
10971
|
}>>;
|
|
10972
|
+
readonly color: Schema.optionalKey<Schema.String>;
|
|
10658
10973
|
readonly everyoneIncludingNew: Schema.optionalKey<Schema.Boolean>;
|
|
10974
|
+
readonly icon: Schema.optionalKey<Schema.Literals<readonly ["UMBRELLA", "SNOWFLAKE", "FAMILY", "PLANE", "STETHOSCOPE", "HEALTH_METRICS", "CHILDCARE", "LUGGAGE", "MONETIZATION", "CALENDAR"]>>;
|
|
10659
10975
|
readonly id: Schema.optionalKey<Schema.String>;
|
|
10660
10976
|
readonly name: Schema.optionalKey<Schema.String>;
|
|
10661
10977
|
readonly negativeBalance: Schema.optionalKey<Schema.Struct<{
|
|
@@ -10684,7 +11000,6 @@ export declare const CreatePolicyRequestJson: Schema.Struct<{
|
|
|
10684
11000
|
readonly automaticAccrual: Schema.optionalKey<Schema.Struct<{
|
|
10685
11001
|
readonly amount: Schema.Number;
|
|
10686
11002
|
readonly period: Schema.optionalKey<Schema.Literals<readonly ["MONTH", "YEAR"]>>;
|
|
10687
|
-
readonly timeUnit: Schema.optionalKey<Schema.Literals<readonly ["DAYS", "HOURS"]>>;
|
|
10688
11003
|
}>>;
|
|
10689
11004
|
readonly automaticTimeEntryCreation: Schema.optionalKey<Schema.Struct<{
|
|
10690
11005
|
readonly defaultEntities: Schema.Struct<{
|
|
@@ -10738,7 +11053,9 @@ export declare const CreatePolicy201: Schema.Struct<{
|
|
|
10738
11053
|
}>>;
|
|
10739
11054
|
readonly enabled: Schema.optionalKey<Schema.Boolean>;
|
|
10740
11055
|
}>>;
|
|
11056
|
+
readonly color: Schema.optionalKey<Schema.String>;
|
|
10741
11057
|
readonly everyoneIncludingNew: Schema.optionalKey<Schema.Boolean>;
|
|
11058
|
+
readonly icon: Schema.optionalKey<Schema.Literals<readonly ["UMBRELLA", "SNOWFLAKE", "FAMILY", "PLANE", "STETHOSCOPE", "HEALTH_METRICS", "CHILDCARE", "LUGGAGE", "MONETIZATION", "CALENDAR"]>>;
|
|
10742
11059
|
readonly id: Schema.optionalKey<Schema.String>;
|
|
10743
11060
|
readonly name: Schema.optionalKey<Schema.String>;
|
|
10744
11061
|
readonly negativeBalance: Schema.optionalKey<Schema.Struct<{
|
|
@@ -10776,7 +11093,9 @@ export declare const GetPolicy200: Schema.Struct<{
|
|
|
10776
11093
|
}>>;
|
|
10777
11094
|
readonly enabled: Schema.optionalKey<Schema.Boolean>;
|
|
10778
11095
|
}>>;
|
|
11096
|
+
readonly color: Schema.optionalKey<Schema.String>;
|
|
10779
11097
|
readonly everyoneIncludingNew: Schema.optionalKey<Schema.Boolean>;
|
|
11098
|
+
readonly icon: Schema.optionalKey<Schema.Literals<readonly ["UMBRELLA", "SNOWFLAKE", "FAMILY", "PLANE", "STETHOSCOPE", "HEALTH_METRICS", "CHILDCARE", "LUGGAGE", "MONETIZATION", "CALENDAR"]>>;
|
|
10780
11099
|
readonly id: Schema.optionalKey<Schema.String>;
|
|
10781
11100
|
readonly name: Schema.optionalKey<Schema.String>;
|
|
10782
11101
|
readonly negativeBalance: Schema.optionalKey<Schema.Struct<{
|
|
@@ -10805,7 +11124,6 @@ export declare const UpdatePolicyRequestJson: Schema.Struct<{
|
|
|
10805
11124
|
readonly automaticAccrual: Schema.optionalKey<Schema.Struct<{
|
|
10806
11125
|
readonly amount: Schema.Number;
|
|
10807
11126
|
readonly period: Schema.optionalKey<Schema.Literals<readonly ["MONTH", "YEAR"]>>;
|
|
10808
|
-
readonly timeUnit: Schema.optionalKey<Schema.Literals<readonly ["DAYS", "HOURS"]>>;
|
|
10809
11127
|
}>>;
|
|
10810
11128
|
readonly automaticTimeEntryCreation: Schema.optionalKey<Schema.Struct<{
|
|
10811
11129
|
readonly defaultEntities: Schema.Struct<{
|
|
@@ -10824,16 +11142,16 @@ export declare const UpdatePolicyRequestJson: Schema.Struct<{
|
|
|
10824
11142
|
readonly period: Schema.optionalKey<Schema.Literals<readonly ["MONTH", "YEAR"]>>;
|
|
10825
11143
|
readonly shouldReset: Schema.optionalKey<Schema.Boolean>;
|
|
10826
11144
|
}>>;
|
|
10827
|
-
readonly userGroups: Schema.Struct<{
|
|
11145
|
+
readonly userGroups: Schema.optionalKey<Schema.Struct<{
|
|
10828
11146
|
readonly contains: Schema.optionalKey<Schema.Literals<readonly ["CONTAINS", "DOES_NOT_CONTAIN"]>>;
|
|
10829
11147
|
readonly ids: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
10830
11148
|
readonly status: Schema.optionalKey<Schema.Literals<readonly ["ALL", "ACTIVE", "INACTIVE"]>>;
|
|
10831
|
-
}
|
|
10832
|
-
readonly users: Schema.Struct<{
|
|
11149
|
+
}>>;
|
|
11150
|
+
readonly users: Schema.optionalKey<Schema.Struct<{
|
|
10833
11151
|
readonly contains: Schema.optionalKey<Schema.Literals<readonly ["CONTAINS", "DOES_NOT_CONTAIN"]>>;
|
|
10834
11152
|
readonly ids: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
10835
11153
|
readonly status: Schema.optionalKey<Schema.Literals<readonly ["ALL", "ACTIVE", "INACTIVE"]>>;
|
|
10836
|
-
}
|
|
11154
|
+
}>>;
|
|
10837
11155
|
}>;
|
|
10838
11156
|
export type UpdatePolicy200 = PolicyDtoV1;
|
|
10839
11157
|
export declare const UpdatePolicy200: Schema.Struct<{
|
|
@@ -10858,7 +11176,9 @@ export declare const UpdatePolicy200: Schema.Struct<{
|
|
|
10858
11176
|
}>>;
|
|
10859
11177
|
readonly enabled: Schema.optionalKey<Schema.Boolean>;
|
|
10860
11178
|
}>>;
|
|
11179
|
+
readonly color: Schema.optionalKey<Schema.String>;
|
|
10861
11180
|
readonly everyoneIncludingNew: Schema.optionalKey<Schema.Boolean>;
|
|
11181
|
+
readonly icon: Schema.optionalKey<Schema.Literals<readonly ["UMBRELLA", "SNOWFLAKE", "FAMILY", "PLANE", "STETHOSCOPE", "HEALTH_METRICS", "CHILDCARE", "LUGGAGE", "MONETIZATION", "CALENDAR"]>>;
|
|
10862
11182
|
readonly id: Schema.optionalKey<Schema.String>;
|
|
10863
11183
|
readonly name: Schema.optionalKey<Schema.String>;
|
|
10864
11184
|
readonly negativeBalance: Schema.optionalKey<Schema.Struct<{
|
|
@@ -10900,7 +11220,9 @@ export declare const UpdatePolicyStatus200: Schema.Struct<{
|
|
|
10900
11220
|
}>>;
|
|
10901
11221
|
readonly enabled: Schema.optionalKey<Schema.Boolean>;
|
|
10902
11222
|
}>>;
|
|
11223
|
+
readonly color: Schema.optionalKey<Schema.String>;
|
|
10903
11224
|
readonly everyoneIncludingNew: Schema.optionalKey<Schema.Boolean>;
|
|
11225
|
+
readonly icon: Schema.optionalKey<Schema.Literals<readonly ["UMBRELLA", "SNOWFLAKE", "FAMILY", "PLANE", "STETHOSCOPE", "HEALTH_METRICS", "CHILDCARE", "LUGGAGE", "MONETIZATION", "CALENDAR"]>>;
|
|
10904
11226
|
readonly id: Schema.optionalKey<Schema.String>;
|
|
10905
11227
|
readonly name: Schema.optionalKey<Schema.String>;
|
|
10906
11228
|
readonly negativeBalance: Schema.optionalKey<Schema.Struct<{
|
|
@@ -13323,12 +13645,12 @@ export interface ClockifyApi {
|
|
|
13323
13645
|
readonly config?: Config | undefined;
|
|
13324
13646
|
}) => Effect.Effect<WithOptionalResponse<void, Config>, HttpClientError.HttpClientError | SchemaError>;
|
|
13325
13647
|
/**
|
|
13326
|
-
* Submit
|
|
13648
|
+
* Submit approval request for user
|
|
13327
13649
|
*/
|
|
13328
|
-
readonly "
|
|
13329
|
-
readonly payload: typeof
|
|
13650
|
+
readonly "createApprovalForOtherDeprecated": <Config extends OperationConfig>(workspaceId: string, userId: string, options: {
|
|
13651
|
+
readonly payload: typeof CreateApprovalForOtherDeprecatedRequestJson.Encoded;
|
|
13330
13652
|
readonly config?: Config | undefined;
|
|
13331
|
-
}) => Effect.Effect<WithOptionalResponse<typeof
|
|
13653
|
+
}) => Effect.Effect<WithOptionalResponse<typeof CreateApprovalForOtherDeprecated201.Type, Config>, HttpClientError.HttpClientError | SchemaError>;
|
|
13332
13654
|
/**
|
|
13333
13655
|
* Re-submit rejected/withdrawn entries/expenses for an approval of a user
|
|
13334
13656
|
*/
|
|
@@ -13337,6 +13659,13 @@ export interface ClockifyApi {
|
|
|
13337
13659
|
readonly config?: Config | undefined;
|
|
13338
13660
|
}) => Effect.Effect<WithOptionalResponse<void, Config>, HttpClientError.HttpClientError | SchemaError>;
|
|
13339
13661
|
/**
|
|
13662
|
+
* Submit approval request for user with type
|
|
13663
|
+
*/
|
|
13664
|
+
readonly "createApprovalForOtherWithType": <Config extends OperationConfig>(workspaceId: string, userId: string, type: string, options: {
|
|
13665
|
+
readonly payload: typeof CreateApprovalForOtherWithTypeRequestJson.Encoded;
|
|
13666
|
+
readonly config?: Config | undefined;
|
|
13667
|
+
}) => Effect.Effect<WithOptionalResponse<typeof CreateApprovalForOtherWithType201.Type, Config>, HttpClientError.HttpClientError | SchemaError>;
|
|
13668
|
+
/**
|
|
13340
13669
|
* Update an approval request
|
|
13341
13670
|
*/
|
|
13342
13671
|
readonly "updateApprovalStatus": <Config extends OperationConfig>(workspaceId: string, approvalRequestId: string, options: {
|
|
@@ -13344,6 +13673,13 @@ export interface ClockifyApi {
|
|
|
13344
13673
|
readonly config?: Config | undefined;
|
|
13345
13674
|
}) => Effect.Effect<WithOptionalResponse<typeof UpdateApprovalStatus200.Type, Config>, HttpClientError.HttpClientError | SchemaError>;
|
|
13346
13675
|
/**
|
|
13676
|
+
* Submit approval request with type
|
|
13677
|
+
*/
|
|
13678
|
+
readonly "createApprrovalRequest1": <Config extends OperationConfig>(workspaceId: string, type: string, options: {
|
|
13679
|
+
readonly payload: typeof CreateApprrovalRequest1RequestJson.Encoded;
|
|
13680
|
+
readonly config?: Config | undefined;
|
|
13681
|
+
}) => Effect.Effect<WithOptionalResponse<typeof CreateApprrovalRequest1201.Type, Config>, HttpClientError.HttpClientError | SchemaError>;
|
|
13682
|
+
/**
|
|
13347
13683
|
* Find clients on a workspace
|
|
13348
13684
|
*/
|
|
13349
13685
|
readonly "getClients": <Config extends OperationConfig>(workspaceId: string, options: {
|
|
@@ -13992,13 +14328,20 @@ export interface ClockifyApi {
|
|
|
13992
14328
|
readonly config?: Config | undefined;
|
|
13993
14329
|
}) => Effect.Effect<WithOptionalResponse<typeof Update200.Type, Config>, HttpClientError.HttpClientError | SchemaError>;
|
|
13994
14330
|
/**
|
|
13995
|
-
*
|
|
14331
|
+
* Important: if workspace has time entry custom fields configured that are marked as required you must provide them in the `customFields` array.
|
|
13996
14332
|
*/
|
|
13997
14333
|
readonly "createTimeEntry": <Config extends OperationConfig>(workspaceId: string, options: {
|
|
13998
14334
|
readonly payload: typeof CreateTimeEntryRequestJson.Encoded;
|
|
13999
14335
|
readonly config?: Config | undefined;
|
|
14000
14336
|
}) => Effect.Effect<WithOptionalResponse<typeof CreateTimeEntry201.Type, Config>, HttpClientError.HttpClientError | SchemaError>;
|
|
14001
14337
|
/**
|
|
14338
|
+
* Get multiple time entries on a workspace
|
|
14339
|
+
*/
|
|
14340
|
+
readonly "getMultipleTimeEntries": <Config extends OperationConfig>(workspaceId: string, options: {
|
|
14341
|
+
readonly payload: typeof GetMultipleTimeEntriesRequestJson.Encoded;
|
|
14342
|
+
readonly config?: Config | undefined;
|
|
14343
|
+
}) => Effect.Effect<WithOptionalResponse<typeof GetMultipleTimeEntries200.Type, Config>, HttpClientError.HttpClientError | SchemaError>;
|
|
14344
|
+
/**
|
|
14002
14345
|
* Mark time entries as invoiced
|
|
14003
14346
|
*/
|
|
14004
14347
|
readonly "updateInvoicedStatus": <Config extends OperationConfig>(workspaceId: string, options: {
|
|
@@ -14033,6 +14376,33 @@ export interface ClockifyApi {
|
|
|
14033
14376
|
readonly config?: Config | undefined;
|
|
14034
14377
|
} | undefined) => Effect.Effect<WithOptionalResponse<void, Config>, HttpClientError.HttpClientError | SchemaError>;
|
|
14035
14378
|
/**
|
|
14379
|
+
* Creates a new balance assignment for a user in policy
|
|
14380
|
+
*/
|
|
14381
|
+
readonly "createBalanceAssignment": <Config extends OperationConfig>(workspaceId: string, options: {
|
|
14382
|
+
readonly payload: typeof CreateBalanceAssignmentRequestJson.Encoded;
|
|
14383
|
+
readonly config?: Config | undefined;
|
|
14384
|
+
}) => Effect.Effect<WithOptionalResponse<void, Config>, HttpClientError.HttpClientError | SchemaError>;
|
|
14385
|
+
/**
|
|
14386
|
+
* Get all balance assignments of a user in policy
|
|
14387
|
+
*/
|
|
14388
|
+
readonly "getBalanceAssignmentsForUserAndPolicy": <Config extends OperationConfig>(workspaceId: string, userId: string, policyId: string, options: {
|
|
14389
|
+
readonly config?: Config | undefined;
|
|
14390
|
+
} | undefined) => Effect.Effect<WithOptionalResponse<void, Config>, HttpClientError.HttpClientError | SchemaError>;
|
|
14391
|
+
/**
|
|
14392
|
+
* Updates a specific balance assignment
|
|
14393
|
+
*/
|
|
14394
|
+
readonly "updateBalanceAssignment": <Config extends OperationConfig>(workspaceId: string, balanceAssignmentId: string, userId: string, policyId: string, options: {
|
|
14395
|
+
readonly payload: typeof UpdateBalanceAssignmentRequestJson.Encoded;
|
|
14396
|
+
readonly config?: Config | undefined;
|
|
14397
|
+
}) => Effect.Effect<WithOptionalResponse<void, Config>, HttpClientError.HttpClientError | SchemaError>;
|
|
14398
|
+
/**
|
|
14399
|
+
* Deletes a specific balance assignment
|
|
14400
|
+
*/
|
|
14401
|
+
readonly "deleteBalanceAssignment": <Config extends OperationConfig>(workspaceId: string, balanceAssignmentId: string, userId: string, policyId: string, options: {
|
|
14402
|
+
readonly payload: typeof DeleteBalanceAssignmentRequestJson.Encoded;
|
|
14403
|
+
readonly config?: Config | undefined;
|
|
14404
|
+
}) => Effect.Effect<WithOptionalResponse<void, Config>, HttpClientError.HttpClientError | SchemaError>;
|
|
14405
|
+
/**
|
|
14036
14406
|
* Get balances for a policy
|
|
14037
14407
|
*/
|
|
14038
14408
|
readonly "getBalancesForPolicy": <Config extends OperationConfig>(workspaceId: string, policyId: string, options: {
|