@37signals/basecamp 0.2.0
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/README.md +600 -0
- package/dist/auth-strategy.d.ts +36 -0
- package/dist/auth-strategy.d.ts.map +1 -0
- package/dist/auth-strategy.js +33 -0
- package/dist/auth-strategy.js.map +1 -0
- package/dist/client.d.ts +224 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +715 -0
- package/dist/client.js.map +1 -0
- package/dist/errors.d.ts +137 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +269 -0
- package/dist/errors.js.map +1 -0
- package/dist/generated/metadata.json +2281 -0
- package/dist/generated/openapi-stripped.json +21268 -0
- package/dist/generated/path-mapping.d.ts +8 -0
- package/dist/generated/path-mapping.d.ts.map +1 -0
- package/dist/generated/path-mapping.js +192 -0
- package/dist/generated/path-mapping.js.map +1 -0
- package/dist/generated/path-mapping.ts +199 -0
- package/dist/generated/schema.d.ts +14883 -0
- package/dist/generated/services/attachments.d.ts +27 -0
- package/dist/generated/services/attachments.d.ts.map +1 -0
- package/dist/generated/services/attachments.js +49 -0
- package/dist/generated/services/attachments.js.map +1 -0
- package/dist/generated/services/attachments.ts +59 -0
- package/dist/generated/services/boosts.d.ts +114 -0
- package/dist/generated/services/boosts.d.ts.map +1 -0
- package/dist/generated/services/boosts.js +179 -0
- package/dist/generated/services/boosts.js.map +1 -0
- package/dist/generated/services/boosts.ts +250 -0
- package/dist/generated/services/campfires.d.ts +202 -0
- package/dist/generated/services/campfires.d.ts.map +1 -0
- package/dist/generated/services/campfires.js +309 -0
- package/dist/generated/services/campfires.js.map +1 -0
- package/dist/generated/services/campfires.ts +433 -0
- package/dist/generated/services/card-columns.d.ts +163 -0
- package/dist/generated/services/card-columns.d.ts.map +1 -0
- package/dist/generated/services/card-columns.js +264 -0
- package/dist/generated/services/card-columns.js.map +1 -0
- package/dist/generated/services/card-columns.ts +360 -0
- package/dist/generated/services/card-steps.d.ts +105 -0
- package/dist/generated/services/card-steps.d.ts.map +1 -0
- package/dist/generated/services/card-steps.js +148 -0
- package/dist/generated/services/card-steps.js.map +1 -0
- package/dist/generated/services/card-steps.ts +221 -0
- package/dist/generated/services/card-tables.d.ts +27 -0
- package/dist/generated/services/card-tables.d.ts.map +1 -0
- package/dist/generated/services/card-tables.js +40 -0
- package/dist/generated/services/card-tables.js.map +1 -0
- package/dist/generated/services/card-tables.ts +55 -0
- package/dist/generated/services/cards.d.ts +118 -0
- package/dist/generated/services/cards.d.ts.map +1 -0
- package/dist/generated/services/cards.js +166 -0
- package/dist/generated/services/cards.js.map +1 -0
- package/dist/generated/services/cards.ts +247 -0
- package/dist/generated/services/checkins.d.ts +278 -0
- package/dist/generated/services/checkins.d.ts.map +1 -0
- package/dist/generated/services/checkins.js +420 -0
- package/dist/generated/services/checkins.js.map +1 -0
- package/dist/generated/services/checkins.ts +600 -0
- package/dist/generated/services/client-approvals.d.ts +45 -0
- package/dist/generated/services/client-approvals.d.ts.map +1 -0
- package/dist/generated/services/client-approvals.js +58 -0
- package/dist/generated/services/client-approvals.js.map +1 -0
- package/dist/generated/services/client-approvals.ts +89 -0
- package/dist/generated/services/client-correspondences.d.ts +45 -0
- package/dist/generated/services/client-correspondences.d.ts.map +1 -0
- package/dist/generated/services/client-correspondences.js +58 -0
- package/dist/generated/services/client-correspondences.js.map +1 -0
- package/dist/generated/services/client-correspondences.ts +89 -0
- package/dist/generated/services/client-replies.d.ts +47 -0
- package/dist/generated/services/client-replies.d.ts.map +1 -0
- package/dist/generated/services/client-replies.js +65 -0
- package/dist/generated/services/client-replies.js.map +1 -0
- package/dist/generated/services/client-replies.ts +95 -0
- package/dist/generated/services/client-visibility.d.ts +35 -0
- package/dist/generated/services/client-visibility.d.ts.map +1 -0
- package/dist/generated/services/client-visibility.js +44 -0
- package/dist/generated/services/client-visibility.js.map +1 -0
- package/dist/generated/services/client-visibility.ts +68 -0
- package/dist/generated/services/comments.d.ts +86 -0
- package/dist/generated/services/comments.d.ts.map +1 -0
- package/dist/generated/services/comments.js +129 -0
- package/dist/generated/services/comments.js.map +1 -0
- package/dist/generated/services/comments.ts +185 -0
- package/dist/generated/services/documents.d.ts +92 -0
- package/dist/generated/services/documents.d.ts.map +1 -0
- package/dist/generated/services/documents.js +129 -0
- package/dist/generated/services/documents.js.map +1 -0
- package/dist/generated/services/documents.ts +191 -0
- package/dist/generated/services/events.d.ts +34 -0
- package/dist/generated/services/events.d.ts.map +1 -0
- package/dist/generated/services/events.js +39 -0
- package/dist/generated/services/events.js.map +1 -0
- package/dist/generated/services/events.ts +64 -0
- package/dist/generated/services/forwards.d.ts +112 -0
- package/dist/generated/services/forwards.d.ts.map +1 -0
- package/dist/generated/services/forwards.js +172 -0
- package/dist/generated/services/forwards.js.map +1 -0
- package/dist/generated/services/forwards.ts +241 -0
- package/dist/generated/services/index.d.ts +39 -0
- package/dist/generated/services/index.d.ts.map +1 -0
- package/dist/generated/services/index.js +39 -0
- package/dist/generated/services/index.js.map +1 -0
- package/dist/generated/services/index.ts +38 -0
- package/dist/generated/services/lineup.d.ts +67 -0
- package/dist/generated/services/lineup.d.ts.map +1 -0
- package/dist/generated/services/lineup.js +99 -0
- package/dist/generated/services/lineup.js.map +1 -0
- package/dist/generated/services/lineup.ts +143 -0
- package/dist/generated/services/message-boards.d.ts +27 -0
- package/dist/generated/services/message-boards.d.ts.map +1 -0
- package/dist/generated/services/message-boards.js +40 -0
- package/dist/generated/services/message-boards.js.map +1 -0
- package/dist/generated/services/message-boards.ts +55 -0
- package/dist/generated/services/message-types.d.ts +100 -0
- package/dist/generated/services/message-types.d.ts.map +1 -0
- package/dist/generated/services/message-types.js +144 -0
- package/dist/generated/services/message-types.js.map +1 -0
- package/dist/generated/services/message-types.ts +210 -0
- package/dist/generated/services/messages.d.ts +122 -0
- package/dist/generated/services/messages.d.ts.map +1 -0
- package/dist/generated/services/messages.js +180 -0
- package/dist/generated/services/messages.js.map +1 -0
- package/dist/generated/services/messages.ts +258 -0
- package/dist/generated/services/people.d.ts +122 -0
- package/dist/generated/services/people.d.ts.map +1 -0
- package/dist/generated/services/people.js +167 -0
- package/dist/generated/services/people.js.map +1 -0
- package/dist/generated/services/people.ts +252 -0
- package/dist/generated/services/projects.d.ts +109 -0
- package/dist/generated/services/projects.d.ts.map +1 -0
- package/dist/generated/services/projects.js +153 -0
- package/dist/generated/services/projects.js.map +1 -0
- package/dist/generated/services/projects.ts +224 -0
- package/dist/generated/services/recordings.d.ts +93 -0
- package/dist/generated/services/recordings.d.ts.map +1 -0
- package/dist/generated/services/recordings.js +138 -0
- package/dist/generated/services/recordings.js.map +1 -0
- package/dist/generated/services/recordings.ts +191 -0
- package/dist/generated/services/reports.d.ts +90 -0
- package/dist/generated/services/reports.d.ts.map +1 -0
- package/dist/generated/services/reports.js +124 -0
- package/dist/generated/services/reports.js.map +1 -0
- package/dist/generated/services/reports.ts +187 -0
- package/dist/generated/services/schedules.d.ts +162 -0
- package/dist/generated/services/schedules.d.ts.map +1 -0
- package/dist/generated/services/schedules.js +228 -0
- package/dist/generated/services/schedules.js.map +1 -0
- package/dist/generated/services/schedules.ts +335 -0
- package/dist/generated/services/search.d.ts +45 -0
- package/dist/generated/services/search.d.ts.map +1 -0
- package/dist/generated/services/search.js +56 -0
- package/dist/generated/services/search.js.map +1 -0
- package/dist/generated/services/search.ts +89 -0
- package/dist/generated/services/subscriptions.d.ts +73 -0
- package/dist/generated/services/subscriptions.d.ts.map +1 -0
- package/dist/generated/services/subscriptions.js +119 -0
- package/dist/generated/services/subscriptions.js.map +1 -0
- package/dist/generated/services/subscriptions.ts +160 -0
- package/dist/generated/services/templates.d.ts +140 -0
- package/dist/generated/services/templates.d.ts.map +1 -0
- package/dist/generated/services/templates.js +207 -0
- package/dist/generated/services/templates.js.map +1 -0
- package/dist/generated/services/templates.ts +294 -0
- package/dist/generated/services/timeline.d.ts +31 -0
- package/dist/generated/services/timeline.d.ts.map +1 -0
- package/dist/generated/services/timeline.js +39 -0
- package/dist/generated/services/timeline.js.map +1 -0
- package/dist/generated/services/timeline.ts +62 -0
- package/dist/generated/services/timesheets.d.ts +145 -0
- package/dist/generated/services/timesheets.d.ts.map +1 -0
- package/dist/generated/services/timesheets.js +186 -0
- package/dist/generated/services/timesheets.js.map +1 -0
- package/dist/generated/services/timesheets.ts +289 -0
- package/dist/generated/services/todolist-groups.d.ts +74 -0
- package/dist/generated/services/todolist-groups.d.ts.map +1 -0
- package/dist/generated/services/todolist-groups.js +100 -0
- package/dist/generated/services/todolist-groups.js.map +1 -0
- package/dist/generated/services/todolist-groups.ts +151 -0
- package/dist/generated/services/todolists.d.ts +95 -0
- package/dist/generated/services/todolists.d.ts.map +1 -0
- package/dist/generated/services/todolists.js +130 -0
- package/dist/generated/services/todolists.js.map +1 -0
- package/dist/generated/services/todolists.ts +192 -0
- package/dist/generated/services/todos.d.ts +175 -0
- package/dist/generated/services/todos.d.ts.map +1 -0
- package/dist/generated/services/todos.js +255 -0
- package/dist/generated/services/todos.js.map +1 -0
- package/dist/generated/services/todos.ts +369 -0
- package/dist/generated/services/todosets.d.ts +27 -0
- package/dist/generated/services/todosets.d.ts.map +1 -0
- package/dist/generated/services/todosets.js +40 -0
- package/dist/generated/services/todosets.js.map +1 -0
- package/dist/generated/services/todosets.ts +55 -0
- package/dist/generated/services/tools.d.ts +122 -0
- package/dist/generated/services/tools.d.ts.map +1 -0
- package/dist/generated/services/tools.js +197 -0
- package/dist/generated/services/tools.js.map +1 -0
- package/dist/generated/services/tools.ts +267 -0
- package/dist/generated/services/uploads.d.ts +109 -0
- package/dist/generated/services/uploads.d.ts.map +1 -0
- package/dist/generated/services/uploads.js +153 -0
- package/dist/generated/services/uploads.js.map +1 -0
- package/dist/generated/services/uploads.ts +227 -0
- package/dist/generated/services/vaults.d.ts +86 -0
- package/dist/generated/services/vaults.d.ts.map +1 -0
- package/dist/generated/services/vaults.js +126 -0
- package/dist/generated/services/vaults.js.map +1 -0
- package/dist/generated/services/vaults.ts +182 -0
- package/dist/generated/services/webhooks.d.ts +106 -0
- package/dist/generated/services/webhooks.d.ts.map +1 -0
- package/dist/generated/services/webhooks.js +157 -0
- package/dist/generated/services/webhooks.js.map +1 -0
- package/dist/generated/services/webhooks.ts +226 -0
- package/dist/hooks/otel.d.ts +136 -0
- package/dist/hooks/otel.d.ts.map +1 -0
- package/dist/hooks/otel.js +240 -0
- package/dist/hooks/otel.js.map +1 -0
- package/dist/hooks.d.ts +171 -0
- package/dist/hooks.d.ts.map +1 -0
- package/dist/hooks.js +196 -0
- package/dist/hooks.js.map +1 -0
- package/dist/index.d.ts +90 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +122 -0
- package/dist/index.js.map +1 -0
- package/dist/oauth/authorize.d.ts +48 -0
- package/dist/oauth/authorize.d.ts.map +1 -0
- package/dist/oauth/authorize.js +56 -0
- package/dist/oauth/authorize.js.map +1 -0
- package/dist/oauth/callback-server.d.ts +56 -0
- package/dist/oauth/callback-server.d.ts.map +1 -0
- package/dist/oauth/callback-server.js +150 -0
- package/dist/oauth/callback-server.js.map +1 -0
- package/dist/oauth/discovery.d.ts +54 -0
- package/dist/oauth/discovery.d.ts.map +1 -0
- package/dist/oauth/discovery.js +116 -0
- package/dist/oauth/discovery.js.map +1 -0
- package/dist/oauth/exchange.d.ts +96 -0
- package/dist/oauth/exchange.d.ts.map +1 -0
- package/dist/oauth/exchange.js +324 -0
- package/dist/oauth/exchange.js.map +1 -0
- package/dist/oauth/identity.d.ts +30 -0
- package/dist/oauth/identity.d.ts.map +1 -0
- package/dist/oauth/identity.js +82 -0
- package/dist/oauth/identity.js.map +1 -0
- package/dist/oauth/index.d.ts +50 -0
- package/dist/oauth/index.d.ts.map +1 -0
- package/dist/oauth/index.js +58 -0
- package/dist/oauth/index.js.map +1 -0
- package/dist/oauth/interactive-login.d.ts +62 -0
- package/dist/oauth/interactive-login.d.ts.map +1 -0
- package/dist/oauth/interactive-login.js +106 -0
- package/dist/oauth/interactive-login.js.map +1 -0
- package/dist/oauth/pkce.d.ts +68 -0
- package/dist/oauth/pkce.d.ts.map +1 -0
- package/dist/oauth/pkce.js +80 -0
- package/dist/oauth/pkce.js.map +1 -0
- package/dist/oauth/token-manager.d.ts +92 -0
- package/dist/oauth/token-manager.d.ts.map +1 -0
- package/dist/oauth/token-manager.js +126 -0
- package/dist/oauth/token-manager.js.map +1 -0
- package/dist/oauth/token-store.d.ts +45 -0
- package/dist/oauth/token-store.d.ts.map +1 -0
- package/dist/oauth/token-store.js +105 -0
- package/dist/oauth/token-store.js.map +1 -0
- package/dist/oauth/types.d.ts +98 -0
- package/dist/oauth/types.d.ts.map +1 -0
- package/dist/oauth/types.js +8 -0
- package/dist/oauth/types.js.map +1 -0
- package/dist/pagination-utils.d.ts +27 -0
- package/dist/pagination-utils.d.ts.map +1 -0
- package/dist/pagination-utils.js +54 -0
- package/dist/pagination-utils.js.map +1 -0
- package/dist/pagination.d.ts +56 -0
- package/dist/pagination.d.ts.map +1 -0
- package/dist/pagination.js +57 -0
- package/dist/pagination.js.map +1 -0
- package/dist/security.d.ts +68 -0
- package/dist/security.d.ts.map +1 -0
- package/dist/security.js +107 -0
- package/dist/security.js.map +1 -0
- package/dist/services/authorization.d.ts +124 -0
- package/dist/services/authorization.d.ts.map +1 -0
- package/dist/services/authorization.js +117 -0
- package/dist/services/authorization.js.map +1 -0
- package/dist/services/base.d.ts +102 -0
- package/dist/services/base.d.ts.map +1 -0
- package/dist/services/base.js +230 -0
- package/dist/services/base.js.map +1 -0
- package/dist/webhooks/adapters/node-http.d.ts +14 -0
- package/dist/webhooks/adapters/node-http.d.ts.map +1 -0
- package/dist/webhooks/adapters/node-http.js +60 -0
- package/dist/webhooks/adapters/node-http.js.map +1 -0
- package/dist/webhooks/events.d.ts +52 -0
- package/dist/webhooks/events.d.ts.map +1 -0
- package/dist/webhooks/events.js +52 -0
- package/dist/webhooks/events.js.map +1 -0
- package/dist/webhooks/handler.d.ts +62 -0
- package/dist/webhooks/handler.d.ts.map +1 -0
- package/dist/webhooks/handler.js +226 -0
- package/dist/webhooks/handler.js.map +1 -0
- package/dist/webhooks/index.d.ts +5 -0
- package/dist/webhooks/index.d.ts.map +1 -0
- package/dist/webhooks/index.js +5 -0
- package/dist/webhooks/index.js.map +1 -0
- package/dist/webhooks/verify.d.ts +11 -0
- package/dist/webhooks/verify.d.ts.map +1 -0
- package/dist/webhooks/verify.js +25 -0
- package/dist/webhooks/verify.js.map +1 -0
- package/package.json +70 -0
- package/src/generated/metadata.json +2281 -0
- package/src/generated/openapi-stripped.json +21268 -0
- package/src/generated/path-mapping.ts +199 -0
- package/src/generated/schema.d.ts +14883 -0
- package/src/generated/services/attachments.ts +59 -0
- package/src/generated/services/boosts.ts +250 -0
- package/src/generated/services/campfires.ts +433 -0
- package/src/generated/services/card-columns.ts +360 -0
- package/src/generated/services/card-steps.ts +221 -0
- package/src/generated/services/card-tables.ts +55 -0
- package/src/generated/services/cards.ts +247 -0
- package/src/generated/services/checkins.ts +600 -0
- package/src/generated/services/client-approvals.ts +89 -0
- package/src/generated/services/client-correspondences.ts +89 -0
- package/src/generated/services/client-replies.ts +95 -0
- package/src/generated/services/client-visibility.ts +68 -0
- package/src/generated/services/comments.ts +185 -0
- package/src/generated/services/documents.ts +191 -0
- package/src/generated/services/events.ts +64 -0
- package/src/generated/services/forwards.ts +241 -0
- package/src/generated/services/index.ts +38 -0
- package/src/generated/services/lineup.ts +143 -0
- package/src/generated/services/message-boards.ts +55 -0
- package/src/generated/services/message-types.ts +210 -0
- package/src/generated/services/messages.ts +258 -0
- package/src/generated/services/people.ts +252 -0
- package/src/generated/services/projects.ts +224 -0
- package/src/generated/services/recordings.ts +191 -0
- package/src/generated/services/reports.ts +187 -0
- package/src/generated/services/schedules.ts +335 -0
- package/src/generated/services/search.ts +89 -0
- package/src/generated/services/subscriptions.ts +160 -0
- package/src/generated/services/templates.ts +294 -0
- package/src/generated/services/timeline.ts +62 -0
- package/src/generated/services/timesheets.ts +289 -0
- package/src/generated/services/todolist-groups.ts +151 -0
- package/src/generated/services/todolists.ts +192 -0
- package/src/generated/services/todos.ts +369 -0
- package/src/generated/services/todosets.ts +55 -0
- package/src/generated/services/tools.ts +267 -0
- package/src/generated/services/uploads.ts +227 -0
- package/src/generated/services/vaults.ts +182 -0
- package/src/generated/services/webhooks.ts +226 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ClientApprovals service for the Basecamp API.
|
|
3
|
+
*
|
|
4
|
+
* @generated from OpenAPI spec - do not edit directly
|
|
5
|
+
*/
|
|
6
|
+
import { BaseService } from "../../services/base.js";
|
|
7
|
+
// =============================================================================
|
|
8
|
+
// Service
|
|
9
|
+
// =============================================================================
|
|
10
|
+
/**
|
|
11
|
+
* Service for ClientApprovals operations.
|
|
12
|
+
*/
|
|
13
|
+
export class ClientApprovalsService extends BaseService {
|
|
14
|
+
/**
|
|
15
|
+
* List all client approvals in a project
|
|
16
|
+
* @param options - Optional query parameters
|
|
17
|
+
* @returns All ClientApproval across all pages, with .meta.totalCount
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```ts
|
|
21
|
+
* const result = await client.clientApprovals.list();
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
async list(options) {
|
|
25
|
+
return this.requestPaginated({
|
|
26
|
+
service: "ClientApprovals",
|
|
27
|
+
operation: "ListClientApprovals",
|
|
28
|
+
resourceType: "client_approval",
|
|
29
|
+
isMutation: false,
|
|
30
|
+
}, () => this.client.GET("/client/approvals.json", {}), options);
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Get a single client approval by id
|
|
34
|
+
* @param approvalId - The approval ID
|
|
35
|
+
* @returns The ClientApproval
|
|
36
|
+
* @throws {BasecampError} If the resource is not found
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```ts
|
|
40
|
+
* const result = await client.clientApprovals.get(123);
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
async get(approvalId) {
|
|
44
|
+
const response = await this.request({
|
|
45
|
+
service: "ClientApprovals",
|
|
46
|
+
operation: "GetClientApproval",
|
|
47
|
+
resourceType: "client_approval",
|
|
48
|
+
isMutation: false,
|
|
49
|
+
resourceId: approvalId,
|
|
50
|
+
}, () => this.client.GET("/client/approvals/{approvalId}", {
|
|
51
|
+
params: {
|
|
52
|
+
path: { approvalId },
|
|
53
|
+
},
|
|
54
|
+
}));
|
|
55
|
+
return response;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=client-approvals.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-approvals.js","sourceRoot":"","sources":["../../../src/generated/services/client-approvals.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAmBrD,gFAAgF;AAChF,UAAU;AACV,gFAAgF;AAEhF;;GAEG;AACH,MAAM,OAAO,sBAAuB,SAAQ,WAAW;IAErD;;;;;;;;;OASG;IACH,KAAK,CAAC,IAAI,CAAC,OAAmC;QAC5C,OAAO,IAAI,CAAC,gBAAgB,CAC1B;YACE,OAAO,EAAE,iBAAiB;YAC1B,SAAS,EAAE,qBAAqB;YAChC,YAAY,EAAE,iBAAiB;YAC/B,UAAU,EAAE,KAAK;SAClB,EACD,GAAG,EAAE,CACH,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,wBAAwB,EAAE,EACzC,CAAC,EACF,OAAO,CACV,CAAC;IACJ,CAAC;IAED;;;;;;;;;;OAUG;IACH,KAAK,CAAC,GAAG,CAAC,UAAkB;QAC1B,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CACjC;YACE,OAAO,EAAE,iBAAiB;YAC1B,SAAS,EAAE,mBAAmB;YAC9B,YAAY,EAAE,iBAAiB;YAC/B,UAAU,EAAE,KAAK;YACjB,UAAU,EAAE,UAAU;SACvB,EACD,GAAG,EAAE,CACH,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,gCAAgC,EAAE;YAChD,MAAM,EAAE;gBACN,IAAI,EAAE,EAAE,UAAU,EAAE;aACrB;SACF,CAAC,CACL,CAAC;QACF,OAAO,QAAQ,CAAC;IAClB,CAAC;CACF"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ClientApprovals service for the Basecamp API.
|
|
3
|
+
*
|
|
4
|
+
* @generated from OpenAPI spec - do not edit directly
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import { BaseService } from "../../services/base.js";
|
|
8
|
+
import type { components } from "../schema.js";
|
|
9
|
+
import { ListResult } from "../../pagination.js";
|
|
10
|
+
import type { PaginationOptions } from "../../pagination.js";
|
|
11
|
+
|
|
12
|
+
// =============================================================================
|
|
13
|
+
// Types
|
|
14
|
+
// =============================================================================
|
|
15
|
+
|
|
16
|
+
/** ClientApproval entity from the Basecamp API. */
|
|
17
|
+
export type ClientApproval = components["schemas"]["ClientApproval"];
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Options for list.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListClientApprovalOptions extends PaginationOptions {
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
// =============================================================================
|
|
27
|
+
// Service
|
|
28
|
+
// =============================================================================
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Service for ClientApprovals operations.
|
|
32
|
+
*/
|
|
33
|
+
export class ClientApprovalsService extends BaseService {
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* List all client approvals in a project
|
|
37
|
+
* @param options - Optional query parameters
|
|
38
|
+
* @returns All ClientApproval across all pages, with .meta.totalCount
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```ts
|
|
42
|
+
* const result = await client.clientApprovals.list();
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
async list(options?: ListClientApprovalOptions): Promise<ListResult<ClientApproval>> {
|
|
46
|
+
return this.requestPaginated(
|
|
47
|
+
{
|
|
48
|
+
service: "ClientApprovals",
|
|
49
|
+
operation: "ListClientApprovals",
|
|
50
|
+
resourceType: "client_approval",
|
|
51
|
+
isMutation: false,
|
|
52
|
+
},
|
|
53
|
+
() =>
|
|
54
|
+
this.client.GET("/client/approvals.json", {
|
|
55
|
+
})
|
|
56
|
+
, options
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Get a single client approval by id
|
|
62
|
+
* @param approvalId - The approval ID
|
|
63
|
+
* @returns The ClientApproval
|
|
64
|
+
* @throws {BasecampError} If the resource is not found
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* ```ts
|
|
68
|
+
* const result = await client.clientApprovals.get(123);
|
|
69
|
+
* ```
|
|
70
|
+
*/
|
|
71
|
+
async get(approvalId: number): Promise<ClientApproval> {
|
|
72
|
+
const response = await this.request(
|
|
73
|
+
{
|
|
74
|
+
service: "ClientApprovals",
|
|
75
|
+
operation: "GetClientApproval",
|
|
76
|
+
resourceType: "client_approval",
|
|
77
|
+
isMutation: false,
|
|
78
|
+
resourceId: approvalId,
|
|
79
|
+
},
|
|
80
|
+
() =>
|
|
81
|
+
this.client.GET("/client/approvals/{approvalId}", {
|
|
82
|
+
params: {
|
|
83
|
+
path: { approvalId },
|
|
84
|
+
},
|
|
85
|
+
})
|
|
86
|
+
);
|
|
87
|
+
return response;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ClientCorrespondences service for the Basecamp API.
|
|
3
|
+
*
|
|
4
|
+
* @generated from OpenAPI spec - do not edit directly
|
|
5
|
+
*/
|
|
6
|
+
import { BaseService } from "../../services/base.js";
|
|
7
|
+
import type { components } from "../schema.js";
|
|
8
|
+
import { ListResult } from "../../pagination.js";
|
|
9
|
+
import type { PaginationOptions } from "../../pagination.js";
|
|
10
|
+
/** ClientCorrespondence entity from the Basecamp API. */
|
|
11
|
+
export type ClientCorrespondence = components["schemas"]["ClientCorrespondence"];
|
|
12
|
+
/**
|
|
13
|
+
* Options for list.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListClientCorrespondenceOptions extends PaginationOptions {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Service for ClientCorrespondences operations.
|
|
19
|
+
*/
|
|
20
|
+
export declare class ClientCorrespondencesService extends BaseService {
|
|
21
|
+
/**
|
|
22
|
+
* List all client correspondences in a project
|
|
23
|
+
* @param options - Optional query parameters
|
|
24
|
+
* @returns All ClientCorrespondence across all pages, with .meta.totalCount
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```ts
|
|
28
|
+
* const result = await client.clientCorrespondences.list();
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
list(options?: ListClientCorrespondenceOptions): Promise<ListResult<ClientCorrespondence>>;
|
|
32
|
+
/**
|
|
33
|
+
* Get a single client correspondence by id
|
|
34
|
+
* @param correspondenceId - The correspondence ID
|
|
35
|
+
* @returns The ClientCorrespondence
|
|
36
|
+
* @throws {BasecampError} If the resource is not found
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```ts
|
|
40
|
+
* const result = await client.clientCorrespondences.get(123);
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
get(correspondenceId: number): Promise<ClientCorrespondence>;
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=client-correspondences.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-correspondences.d.ts","sourceRoot":"","sources":["../../../src/generated/services/client-correspondences.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAM7D,yDAAyD;AACzD,MAAM,MAAM,oBAAoB,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,sBAAsB,CAAC,CAAC;AAEjF;;GAEG;AACH,MAAM,WAAW,+BAAgC,SAAQ,iBAAiB;CACzE;AAOD;;GAEG;AACH,qBAAa,4BAA6B,SAAQ,WAAW;IAE3D;;;;;;;;;OASG;IACG,IAAI,CAAC,OAAO,CAAC,EAAE,+BAA+B,GAAG,OAAO,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC;IAehG;;;;;;;;;;OAUG;IACG,GAAG,CAAC,gBAAgB,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,CAAC;CAkBnE"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ClientCorrespondences service for the Basecamp API.
|
|
3
|
+
*
|
|
4
|
+
* @generated from OpenAPI spec - do not edit directly
|
|
5
|
+
*/
|
|
6
|
+
import { BaseService } from "../../services/base.js";
|
|
7
|
+
// =============================================================================
|
|
8
|
+
// Service
|
|
9
|
+
// =============================================================================
|
|
10
|
+
/**
|
|
11
|
+
* Service for ClientCorrespondences operations.
|
|
12
|
+
*/
|
|
13
|
+
export class ClientCorrespondencesService extends BaseService {
|
|
14
|
+
/**
|
|
15
|
+
* List all client correspondences in a project
|
|
16
|
+
* @param options - Optional query parameters
|
|
17
|
+
* @returns All ClientCorrespondence across all pages, with .meta.totalCount
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```ts
|
|
21
|
+
* const result = await client.clientCorrespondences.list();
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
async list(options) {
|
|
25
|
+
return this.requestPaginated({
|
|
26
|
+
service: "ClientCorrespondences",
|
|
27
|
+
operation: "ListClientCorrespondences",
|
|
28
|
+
resourceType: "client_correspondence",
|
|
29
|
+
isMutation: false,
|
|
30
|
+
}, () => this.client.GET("/client/correspondences.json", {}), options);
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Get a single client correspondence by id
|
|
34
|
+
* @param correspondenceId - The correspondence ID
|
|
35
|
+
* @returns The ClientCorrespondence
|
|
36
|
+
* @throws {BasecampError} If the resource is not found
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```ts
|
|
40
|
+
* const result = await client.clientCorrespondences.get(123);
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
async get(correspondenceId) {
|
|
44
|
+
const response = await this.request({
|
|
45
|
+
service: "ClientCorrespondences",
|
|
46
|
+
operation: "GetClientCorrespondence",
|
|
47
|
+
resourceType: "client_correspondence",
|
|
48
|
+
isMutation: false,
|
|
49
|
+
resourceId: correspondenceId,
|
|
50
|
+
}, () => this.client.GET("/client/correspondences/{correspondenceId}", {
|
|
51
|
+
params: {
|
|
52
|
+
path: { correspondenceId },
|
|
53
|
+
},
|
|
54
|
+
}));
|
|
55
|
+
return response;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=client-correspondences.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-correspondences.js","sourceRoot":"","sources":["../../../src/generated/services/client-correspondences.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAmBrD,gFAAgF;AAChF,UAAU;AACV,gFAAgF;AAEhF;;GAEG;AACH,MAAM,OAAO,4BAA6B,SAAQ,WAAW;IAE3D;;;;;;;;;OASG;IACH,KAAK,CAAC,IAAI,CAAC,OAAyC;QAClD,OAAO,IAAI,CAAC,gBAAgB,CAC1B;YACE,OAAO,EAAE,uBAAuB;YAChC,SAAS,EAAE,2BAA2B;YACtC,YAAY,EAAE,uBAAuB;YACrC,UAAU,EAAE,KAAK;SAClB,EACD,GAAG,EAAE,CACH,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,8BAA8B,EAAE,EAC/C,CAAC,EACF,OAAO,CACV,CAAC;IACJ,CAAC;IAED;;;;;;;;;;OAUG;IACH,KAAK,CAAC,GAAG,CAAC,gBAAwB;QAChC,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CACjC;YACE,OAAO,EAAE,uBAAuB;YAChC,SAAS,EAAE,yBAAyB;YACpC,YAAY,EAAE,uBAAuB;YACrC,UAAU,EAAE,KAAK;YACjB,UAAU,EAAE,gBAAgB;SAC7B,EACD,GAAG,EAAE,CACH,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,4CAA4C,EAAE;YAC5D,MAAM,EAAE;gBACN,IAAI,EAAE,EAAE,gBAAgB,EAAE;aAC3B;SACF,CAAC,CACL,CAAC;QACF,OAAO,QAAQ,CAAC;IAClB,CAAC;CACF"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ClientCorrespondences service for the Basecamp API.
|
|
3
|
+
*
|
|
4
|
+
* @generated from OpenAPI spec - do not edit directly
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import { BaseService } from "../../services/base.js";
|
|
8
|
+
import type { components } from "../schema.js";
|
|
9
|
+
import { ListResult } from "../../pagination.js";
|
|
10
|
+
import type { PaginationOptions } from "../../pagination.js";
|
|
11
|
+
|
|
12
|
+
// =============================================================================
|
|
13
|
+
// Types
|
|
14
|
+
// =============================================================================
|
|
15
|
+
|
|
16
|
+
/** ClientCorrespondence entity from the Basecamp API. */
|
|
17
|
+
export type ClientCorrespondence = components["schemas"]["ClientCorrespondence"];
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Options for list.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListClientCorrespondenceOptions extends PaginationOptions {
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
// =============================================================================
|
|
27
|
+
// Service
|
|
28
|
+
// =============================================================================
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Service for ClientCorrespondences operations.
|
|
32
|
+
*/
|
|
33
|
+
export class ClientCorrespondencesService extends BaseService {
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* List all client correspondences in a project
|
|
37
|
+
* @param options - Optional query parameters
|
|
38
|
+
* @returns All ClientCorrespondence across all pages, with .meta.totalCount
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```ts
|
|
42
|
+
* const result = await client.clientCorrespondences.list();
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
async list(options?: ListClientCorrespondenceOptions): Promise<ListResult<ClientCorrespondence>> {
|
|
46
|
+
return this.requestPaginated(
|
|
47
|
+
{
|
|
48
|
+
service: "ClientCorrespondences",
|
|
49
|
+
operation: "ListClientCorrespondences",
|
|
50
|
+
resourceType: "client_correspondence",
|
|
51
|
+
isMutation: false,
|
|
52
|
+
},
|
|
53
|
+
() =>
|
|
54
|
+
this.client.GET("/client/correspondences.json", {
|
|
55
|
+
})
|
|
56
|
+
, options
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Get a single client correspondence by id
|
|
62
|
+
* @param correspondenceId - The correspondence ID
|
|
63
|
+
* @returns The ClientCorrespondence
|
|
64
|
+
* @throws {BasecampError} If the resource is not found
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* ```ts
|
|
68
|
+
* const result = await client.clientCorrespondences.get(123);
|
|
69
|
+
* ```
|
|
70
|
+
*/
|
|
71
|
+
async get(correspondenceId: number): Promise<ClientCorrespondence> {
|
|
72
|
+
const response = await this.request(
|
|
73
|
+
{
|
|
74
|
+
service: "ClientCorrespondences",
|
|
75
|
+
operation: "GetClientCorrespondence",
|
|
76
|
+
resourceType: "client_correspondence",
|
|
77
|
+
isMutation: false,
|
|
78
|
+
resourceId: correspondenceId,
|
|
79
|
+
},
|
|
80
|
+
() =>
|
|
81
|
+
this.client.GET("/client/correspondences/{correspondenceId}", {
|
|
82
|
+
params: {
|
|
83
|
+
path: { correspondenceId },
|
|
84
|
+
},
|
|
85
|
+
})
|
|
86
|
+
);
|
|
87
|
+
return response;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ClientReplies service for the Basecamp API.
|
|
3
|
+
*
|
|
4
|
+
* @generated from OpenAPI spec - do not edit directly
|
|
5
|
+
*/
|
|
6
|
+
import { BaseService } from "../../services/base.js";
|
|
7
|
+
import type { components } from "../schema.js";
|
|
8
|
+
import { ListResult } from "../../pagination.js";
|
|
9
|
+
import type { PaginationOptions } from "../../pagination.js";
|
|
10
|
+
/** ClientReply entity from the Basecamp API. */
|
|
11
|
+
export type ClientReply = components["schemas"]["ClientReply"];
|
|
12
|
+
/**
|
|
13
|
+
* Options for list.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListClientReplyOptions extends PaginationOptions {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Service for ClientReplies operations.
|
|
19
|
+
*/
|
|
20
|
+
export declare class ClientRepliesService extends BaseService {
|
|
21
|
+
/**
|
|
22
|
+
* List all client replies for a recording (correspondence or approval)
|
|
23
|
+
* @param recordingId - The recording ID
|
|
24
|
+
* @param options - Optional query parameters
|
|
25
|
+
* @returns All ClientReply across all pages, with .meta.totalCount
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```ts
|
|
29
|
+
* const result = await client.clientReplies.list(123);
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
list(recordingId: number, options?: ListClientReplyOptions): Promise<ListResult<ClientReply>>;
|
|
33
|
+
/**
|
|
34
|
+
* Get a single client reply by id
|
|
35
|
+
* @param recordingId - The recording ID
|
|
36
|
+
* @param replyId - The reply ID
|
|
37
|
+
* @returns The ClientReply
|
|
38
|
+
* @throws {BasecampError} If the resource is not found
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```ts
|
|
42
|
+
* const result = await client.clientReplies.get(123, 123);
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
get(recordingId: number, replyId: number): Promise<ClientReply>;
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=client-replies.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-replies.d.ts","sourceRoot":"","sources":["../../../src/generated/services/client-replies.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAM7D,gDAAgD;AAChD,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,aAAa,CAAC,CAAC;AAE/D;;GAEG;AACH,MAAM,WAAW,sBAAuB,SAAQ,iBAAiB;CAChE;AAOD;;GAEG;AACH,qBAAa,oBAAqB,SAAQ,WAAW;IAEnD;;;;;;;;;;OAUG;IACG,IAAI,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,sBAAsB,GAAG,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;IAmBnG;;;;;;;;;;;OAWG;IACG,GAAG,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;CAkBtE"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ClientReplies service for the Basecamp API.
|
|
3
|
+
*
|
|
4
|
+
* @generated from OpenAPI spec - do not edit directly
|
|
5
|
+
*/
|
|
6
|
+
import { BaseService } from "../../services/base.js";
|
|
7
|
+
// =============================================================================
|
|
8
|
+
// Service
|
|
9
|
+
// =============================================================================
|
|
10
|
+
/**
|
|
11
|
+
* Service for ClientReplies operations.
|
|
12
|
+
*/
|
|
13
|
+
export class ClientRepliesService extends BaseService {
|
|
14
|
+
/**
|
|
15
|
+
* List all client replies for a recording (correspondence or approval)
|
|
16
|
+
* @param recordingId - The recording ID
|
|
17
|
+
* @param options - Optional query parameters
|
|
18
|
+
* @returns All ClientReply across all pages, with .meta.totalCount
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* const result = await client.clientReplies.list(123);
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
async list(recordingId, options) {
|
|
26
|
+
return this.requestPaginated({
|
|
27
|
+
service: "ClientReplies",
|
|
28
|
+
operation: "ListClientReplies",
|
|
29
|
+
resourceType: "client_replie",
|
|
30
|
+
isMutation: false,
|
|
31
|
+
resourceId: recordingId,
|
|
32
|
+
}, () => this.client.GET("/client/recordings/{recordingId}/replies.json", {
|
|
33
|
+
params: {
|
|
34
|
+
path: { recordingId },
|
|
35
|
+
},
|
|
36
|
+
}), options);
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Get a single client reply by id
|
|
40
|
+
* @param recordingId - The recording ID
|
|
41
|
+
* @param replyId - The reply ID
|
|
42
|
+
* @returns The ClientReply
|
|
43
|
+
* @throws {BasecampError} If the resource is not found
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```ts
|
|
47
|
+
* const result = await client.clientReplies.get(123, 123);
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
async get(recordingId, replyId) {
|
|
51
|
+
const response = await this.request({
|
|
52
|
+
service: "ClientReplies",
|
|
53
|
+
operation: "GetClientReply",
|
|
54
|
+
resourceType: "client_reply",
|
|
55
|
+
isMutation: false,
|
|
56
|
+
resourceId: recordingId,
|
|
57
|
+
}, () => this.client.GET("/client/recordings/{recordingId}/replies/{replyId}", {
|
|
58
|
+
params: {
|
|
59
|
+
path: { recordingId, replyId },
|
|
60
|
+
},
|
|
61
|
+
}));
|
|
62
|
+
return response;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
//# sourceMappingURL=client-replies.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-replies.js","sourceRoot":"","sources":["../../../src/generated/services/client-replies.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAmBrD,gFAAgF;AAChF,UAAU;AACV,gFAAgF;AAEhF;;GAEG;AACH,MAAM,OAAO,oBAAqB,SAAQ,WAAW;IAEnD;;;;;;;;;;OAUG;IACH,KAAK,CAAC,IAAI,CAAC,WAAmB,EAAE,OAAgC;QAC9D,OAAO,IAAI,CAAC,gBAAgB,CAC1B;YACE,OAAO,EAAE,eAAe;YACxB,SAAS,EAAE,mBAAmB;YAC9B,YAAY,EAAE,eAAe;YAC7B,UAAU,EAAE,KAAK;YACjB,UAAU,EAAE,WAAW;SACxB,EACD,GAAG,EAAE,CACH,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,+CAA+C,EAAE;YAC/D,MAAM,EAAE;gBACN,IAAI,EAAE,EAAE,WAAW,EAAE;aACtB;SACF,CAAC,EACF,OAAO,CACV,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;OAWG;IACH,KAAK,CAAC,GAAG,CAAC,WAAmB,EAAE,OAAe;QAC5C,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CACjC;YACE,OAAO,EAAE,eAAe;YACxB,SAAS,EAAE,gBAAgB;YAC3B,YAAY,EAAE,cAAc;YAC5B,UAAU,EAAE,KAAK;YACjB,UAAU,EAAE,WAAW;SACxB,EACD,GAAG,EAAE,CACH,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,oDAAoD,EAAE;YACpE,MAAM,EAAE;gBACN,IAAI,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE;aAC/B;SACF,CAAC,CACL,CAAC;QACF,OAAO,QAAQ,CAAC;IAClB,CAAC;CACF"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ClientReplies service for the Basecamp API.
|
|
3
|
+
*
|
|
4
|
+
* @generated from OpenAPI spec - do not edit directly
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import { BaseService } from "../../services/base.js";
|
|
8
|
+
import type { components } from "../schema.js";
|
|
9
|
+
import { ListResult } from "../../pagination.js";
|
|
10
|
+
import type { PaginationOptions } from "../../pagination.js";
|
|
11
|
+
|
|
12
|
+
// =============================================================================
|
|
13
|
+
// Types
|
|
14
|
+
// =============================================================================
|
|
15
|
+
|
|
16
|
+
/** ClientReply entity from the Basecamp API. */
|
|
17
|
+
export type ClientReply = components["schemas"]["ClientReply"];
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Options for list.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListClientReplyOptions extends PaginationOptions {
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
// =============================================================================
|
|
27
|
+
// Service
|
|
28
|
+
// =============================================================================
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Service for ClientReplies operations.
|
|
32
|
+
*/
|
|
33
|
+
export class ClientRepliesService extends BaseService {
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* List all client replies for a recording (correspondence or approval)
|
|
37
|
+
* @param recordingId - The recording ID
|
|
38
|
+
* @param options - Optional query parameters
|
|
39
|
+
* @returns All ClientReply across all pages, with .meta.totalCount
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* ```ts
|
|
43
|
+
* const result = await client.clientReplies.list(123);
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
async list(recordingId: number, options?: ListClientReplyOptions): Promise<ListResult<ClientReply>> {
|
|
47
|
+
return this.requestPaginated(
|
|
48
|
+
{
|
|
49
|
+
service: "ClientReplies",
|
|
50
|
+
operation: "ListClientReplies",
|
|
51
|
+
resourceType: "client_replie",
|
|
52
|
+
isMutation: false,
|
|
53
|
+
resourceId: recordingId,
|
|
54
|
+
},
|
|
55
|
+
() =>
|
|
56
|
+
this.client.GET("/client/recordings/{recordingId}/replies.json", {
|
|
57
|
+
params: {
|
|
58
|
+
path: { recordingId },
|
|
59
|
+
},
|
|
60
|
+
})
|
|
61
|
+
, options
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Get a single client reply by id
|
|
67
|
+
* @param recordingId - The recording ID
|
|
68
|
+
* @param replyId - The reply ID
|
|
69
|
+
* @returns The ClientReply
|
|
70
|
+
* @throws {BasecampError} If the resource is not found
|
|
71
|
+
*
|
|
72
|
+
* @example
|
|
73
|
+
* ```ts
|
|
74
|
+
* const result = await client.clientReplies.get(123, 123);
|
|
75
|
+
* ```
|
|
76
|
+
*/
|
|
77
|
+
async get(recordingId: number, replyId: number): Promise<ClientReply> {
|
|
78
|
+
const response = await this.request(
|
|
79
|
+
{
|
|
80
|
+
service: "ClientReplies",
|
|
81
|
+
operation: "GetClientReply",
|
|
82
|
+
resourceType: "client_reply",
|
|
83
|
+
isMutation: false,
|
|
84
|
+
resourceId: recordingId,
|
|
85
|
+
},
|
|
86
|
+
() =>
|
|
87
|
+
this.client.GET("/client/recordings/{recordingId}/replies/{replyId}", {
|
|
88
|
+
params: {
|
|
89
|
+
path: { recordingId, replyId },
|
|
90
|
+
},
|
|
91
|
+
})
|
|
92
|
+
);
|
|
93
|
+
return response;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ClientVisibility service for the Basecamp API.
|
|
3
|
+
*
|
|
4
|
+
* @generated from OpenAPI spec - do not edit directly
|
|
5
|
+
*/
|
|
6
|
+
import { BaseService } from "../../services/base.js";
|
|
7
|
+
import type { components } from "../schema.js";
|
|
8
|
+
/** Recording entity from the Basecamp API. */
|
|
9
|
+
export type Recording = components["schemas"]["Recording"];
|
|
10
|
+
/**
|
|
11
|
+
* Request parameters for setVisibility.
|
|
12
|
+
*/
|
|
13
|
+
export interface SetVisibilityClientVisibilityRequest {
|
|
14
|
+
/** Visible to clients */
|
|
15
|
+
visibleToClients: boolean;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Service for ClientVisibility operations.
|
|
19
|
+
*/
|
|
20
|
+
export declare class ClientVisibilityService extends BaseService {
|
|
21
|
+
/**
|
|
22
|
+
* Set client visibility for a recording
|
|
23
|
+
* @param recordingId - The recording ID
|
|
24
|
+
* @param req - Client_visibility request parameters
|
|
25
|
+
* @returns The Recording
|
|
26
|
+
* @throws {BasecampError} If the request fails
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```ts
|
|
30
|
+
* const result = await client.clientVisibility.setVisibility(123, { visibleToClients: true });
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
setVisibility(recordingId: number, req: SetVisibilityClientVisibilityRequest): Promise<Recording>;
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=client-visibility.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-visibility.d.ts","sourceRoot":"","sources":["../../../src/generated/services/client-visibility.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAM/C,8CAA8C;AAC9C,MAAM,MAAM,SAAS,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,WAAW,CAAC,CAAC;AAE3D;;GAEG;AACH,MAAM,WAAW,oCAAoC;IACnD,yBAAyB;IACzB,gBAAgB,EAAE,OAAO,CAAC;CAC3B;AAOD;;GAEG;AACH,qBAAa,uBAAwB,SAAQ,WAAW;IAEtD;;;;;;;;;;;OAWG;IACG,aAAa,CAAC,WAAW,EAAE,MAAM,EAAE,GAAG,EAAE,oCAAoC,GAAG,OAAO,CAAC,SAAS,CAAC;CAqBxG"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ClientVisibility service for the Basecamp API.
|
|
3
|
+
*
|
|
4
|
+
* @generated from OpenAPI spec - do not edit directly
|
|
5
|
+
*/
|
|
6
|
+
import { BaseService } from "../../services/base.js";
|
|
7
|
+
// =============================================================================
|
|
8
|
+
// Service
|
|
9
|
+
// =============================================================================
|
|
10
|
+
/**
|
|
11
|
+
* Service for ClientVisibility operations.
|
|
12
|
+
*/
|
|
13
|
+
export class ClientVisibilityService extends BaseService {
|
|
14
|
+
/**
|
|
15
|
+
* Set client visibility for a recording
|
|
16
|
+
* @param recordingId - The recording ID
|
|
17
|
+
* @param req - Client_visibility request parameters
|
|
18
|
+
* @returns The Recording
|
|
19
|
+
* @throws {BasecampError} If the request fails
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```ts
|
|
23
|
+
* const result = await client.clientVisibility.setVisibility(123, { visibleToClients: true });
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
async setVisibility(recordingId, req) {
|
|
27
|
+
const response = await this.request({
|
|
28
|
+
service: "ClientVisibility",
|
|
29
|
+
operation: "SetClientVisibility",
|
|
30
|
+
resourceType: "client_visibility",
|
|
31
|
+
isMutation: true,
|
|
32
|
+
resourceId: recordingId,
|
|
33
|
+
}, () => this.client.PUT("/recordings/{recordingId}/client_visibility.json", {
|
|
34
|
+
params: {
|
|
35
|
+
path: { recordingId },
|
|
36
|
+
},
|
|
37
|
+
body: {
|
|
38
|
+
visible_to_clients: req.visibleToClients,
|
|
39
|
+
},
|
|
40
|
+
}));
|
|
41
|
+
return response;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=client-visibility.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-visibility.js","sourceRoot":"","sources":["../../../src/generated/services/client-visibility.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAmBrD,gFAAgF;AAChF,UAAU;AACV,gFAAgF;AAEhF;;GAEG;AACH,MAAM,OAAO,uBAAwB,SAAQ,WAAW;IAEtD;;;;;;;;;;;OAWG;IACH,KAAK,CAAC,aAAa,CAAC,WAAmB,EAAE,GAAyC;QAChF,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CACjC;YACE,OAAO,EAAE,kBAAkB;YAC3B,SAAS,EAAE,qBAAqB;YAChC,YAAY,EAAE,mBAAmB;YACjC,UAAU,EAAE,IAAI;YAChB,UAAU,EAAE,WAAW;SACxB,EACD,GAAG,EAAE,CACH,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,kDAAkD,EAAE;YAClE,MAAM,EAAE;gBACN,IAAI,EAAE,EAAE,WAAW,EAAE;aACtB;YACD,IAAI,EAAE;gBACJ,kBAAkB,EAAE,GAAG,CAAC,gBAAgB;aACzC;SACF,CAAC,CACL,CAAC;QACF,OAAO,QAAQ,CAAC;IAClB,CAAC;CACF"}
|