@taktoria/sdk 0.1.0 → 0.1.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.
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/Client.d.ts +3 -0
- package/dist/cjs/Client.js +7 -2
- package/dist/cjs/api/resources/artifacts/client/Client.d.ts +14 -6
- package/dist/cjs/api/resources/artifacts/client/Client.js +16 -7
- package/dist/cjs/api/resources/artifacts/client/requests/ListAllArtifactsRequest.d.ts +13 -1
- package/dist/cjs/api/resources/dory/client/Client.d.ts +28 -5
- package/dist/cjs/api/resources/dory/client/Client.js +86 -5
- package/dist/cjs/api/resources/dory/types/CreateEventRequest.d.ts +9 -4
- package/dist/cjs/api/resources/dory/types/EventCalendarInvite.d.ts +41 -0
- package/dist/cjs/api/resources/dory/types/EventCalendarInvite.js +3 -0
- package/dist/cjs/api/resources/dory/types/UpdateEventRequest.d.ts +9 -4
- package/dist/cjs/api/resources/dory/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/dory/types/index.js +1 -0
- package/dist/cjs/api/resources/index.d.ts +3 -0
- package/dist/cjs/api/resources/index.js +4 -1
- package/dist/cjs/api/resources/insights/client/Client.js +2 -1
- package/dist/cjs/api/resources/insights/client/requests/ListInsightsRequest.d.ts +12 -1
- package/dist/cjs/api/resources/launches/client/Client.d.ts +29 -13
- package/dist/cjs/api/resources/launches/client/Client.js +48 -14
- package/dist/cjs/api/resources/launches/client/requests/ListLaunchesRequest.d.ts +25 -1
- package/dist/cjs/api/resources/launches/types/LaunchActivityVerb.d.ts +3 -0
- package/dist/cjs/api/resources/launches/types/LaunchActivityVerb.js +3 -0
- package/dist/cjs/api/resources/launches/types/LinkTicketingProjectRequest.d.ts +2 -2
- package/dist/cjs/api/resources/launches/types/SyncTicketingProjectResponse.d.ts +1 -1
- package/dist/cjs/api/resources/launches/types/TicketingProject.d.ts +13 -7
- package/dist/cjs/api/resources/okr/client/Client.d.ts +8 -0
- package/dist/cjs/api/resources/okr/client/Client.js +8 -0
- package/dist/cjs/api/resources/okr/types/KeyResult.d.ts +13 -0
- package/dist/cjs/api/resources/okr/types/KeyResultMetric.d.ts +12 -0
- package/dist/cjs/api/resources/okr/types/KeyResultMetric.js +3 -0
- package/dist/cjs/api/resources/okr/types/MetricSourceKind.d.ts +10 -0
- package/dist/cjs/api/resources/okr/types/MetricSourceKind.js +13 -0
- package/dist/cjs/api/resources/okr/types/index.d.ts +2 -0
- package/dist/cjs/api/resources/okr/types/index.js +2 -0
- package/dist/cjs/api/resources/organization/client/Client.d.ts +5 -2
- package/dist/cjs/api/resources/organization/client/Client.js +5 -2
- package/dist/cjs/api/resources/organization/types/Organization.d.ts +21 -0
- package/dist/cjs/api/resources/organization/types/UpdateOrganizationRequest.d.ts +15 -0
- package/dist/cjs/api/resources/platform/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/platform/client/Client.js +2 -2
- package/dist/cjs/api/resources/platform/types/NotificationChannels.d.ts +7 -2
- package/dist/cjs/api/resources/platform/types/UpdateNotificationChannels.d.ts +1 -0
- package/dist/cjs/api/resources/platform/types/UpdateNotificationPreferencesRequest.d.ts +1 -1
- package/dist/cjs/api/resources/platform/types/WaitingForSeat.d.ts +2 -2
- package/dist/cjs/api/resources/posts/client/Client.d.ts +5 -2
- package/dist/cjs/api/resources/posts/client/Client.js +13 -2
- package/dist/cjs/api/resources/posts/types/LaunchPost.d.ts +4 -3
- package/dist/cjs/api/resources/slackConnections/client/Client.d.ts +56 -0
- package/dist/cjs/api/resources/slackConnections/client/Client.js +243 -0
- package/dist/cjs/api/resources/slackConnections/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/slackConnections/client/index.js +17 -0
- package/dist/cjs/api/resources/slackConnections/client/requests/ListSlackConnectionsRequest.d.ts +9 -0
- package/dist/cjs/api/resources/slackConnections/client/requests/ListSlackConnectionsRequest.js +3 -0
- package/dist/cjs/api/resources/slackConnections/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/slackConnections/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/slackConnections/exports.d.ts +2 -0
- package/dist/cjs/api/resources/slackConnections/exports.js +21 -0
- package/dist/cjs/api/resources/slackConnections/index.d.ts +2 -0
- package/dist/cjs/api/resources/slackConnections/index.js +18 -0
- package/dist/cjs/api/resources/slackConnections/types/SlackConnection.d.ts +16 -0
- package/dist/cjs/api/resources/slackConnections/types/SlackConnection.js +3 -0
- package/dist/cjs/api/resources/slackConnections/types/SlackConnectionAccount.d.ts +15 -0
- package/dist/cjs/api/resources/slackConnections/types/SlackConnectionAccount.js +3 -0
- package/dist/cjs/api/resources/slackConnections/types/SlackConnectionPage.d.ts +7 -0
- package/dist/cjs/api/resources/slackConnections/types/SlackConnectionPage.js +3 -0
- package/dist/cjs/api/resources/slackConnections/types/SlackConnectionPerson.d.ts +7 -0
- package/dist/cjs/api/resources/slackConnections/types/SlackConnectionPerson.js +3 -0
- package/dist/cjs/api/resources/slackConnections/types/index.d.ts +4 -0
- package/dist/cjs/api/resources/slackConnections/types/index.js +20 -0
- package/dist/cjs/api/resources/steps/client/Client.d.ts +15 -9
- package/dist/cjs/api/resources/steps/client/Client.js +17 -10
- package/dist/cjs/api/resources/steps/client/requests/ListReviewsRequest.d.ts +12 -1
- package/dist/cjs/api/resources/steps/types/NudgeReason.d.ts +10 -0
- package/dist/cjs/api/resources/steps/types/NudgeReason.js +13 -0
- package/dist/cjs/api/resources/steps/types/NudgeResponse.d.ts +11 -1
- package/dist/cjs/api/resources/steps/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/steps/types/index.js +1 -0
- package/dist/cjs/serialization/resources/dory/types/EventCalendarInvite.d.ts +20 -0
- package/dist/cjs/serialization/resources/dory/types/EventCalendarInvite.js +52 -0
- package/dist/cjs/serialization/resources/dory/types/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/dory/types/index.js +1 -0
- package/dist/cjs/serialization/resources/index.d.ts +2 -0
- package/dist/cjs/serialization/resources/index.js +3 -1
- package/dist/cjs/serialization/resources/launches/types/LaunchActivityVerb.d.ts +1 -1
- package/dist/cjs/serialization/resources/launches/types/LaunchActivityVerb.js +1 -0
- package/dist/cjs/serialization/resources/okr/types/KeyResult.d.ts +3 -0
- package/dist/cjs/serialization/resources/okr/types/KeyResult.js +3 -0
- package/dist/cjs/serialization/resources/okr/types/KeyResultMetric.d.ts +12 -0
- package/dist/cjs/serialization/resources/okr/types/KeyResultMetric.js +44 -0
- package/dist/cjs/serialization/resources/okr/types/MetricSourceKind.d.ts +7 -0
- package/dist/cjs/serialization/resources/okr/types/MetricSourceKind.js +39 -0
- package/dist/cjs/serialization/resources/okr/types/index.d.ts +2 -0
- package/dist/cjs/serialization/resources/okr/types/index.js +2 -0
- package/dist/cjs/serialization/resources/organization/types/Organization.d.ts +2 -0
- package/dist/cjs/serialization/resources/organization/types/Organization.js +2 -0
- package/dist/cjs/serialization/resources/organization/types/UpdateOrganizationRequest.d.ts +2 -0
- package/dist/cjs/serialization/resources/organization/types/UpdateOrganizationRequest.js +2 -0
- package/dist/cjs/serialization/resources/platform/types/NotificationChannels.d.ts +1 -0
- package/dist/cjs/serialization/resources/platform/types/NotificationChannels.js +1 -0
- package/dist/cjs/serialization/resources/platform/types/UpdateNotificationChannels.d.ts +1 -0
- package/dist/cjs/serialization/resources/platform/types/UpdateNotificationChannels.js +1 -0
- package/dist/cjs/serialization/resources/slackConnections/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/slackConnections/index.js +17 -0
- package/dist/cjs/serialization/resources/slackConnections/types/SlackConnection.d.ts +14 -0
- package/dist/cjs/serialization/resources/slackConnections/types/SlackConnection.js +46 -0
- package/dist/cjs/serialization/resources/slackConnections/types/SlackConnectionAccount.d.ts +11 -0
- package/dist/cjs/serialization/resources/slackConnections/types/SlackConnectionAccount.js +43 -0
- package/dist/cjs/serialization/resources/slackConnections/types/SlackConnectionPage.d.ts +12 -0
- package/dist/cjs/serialization/resources/slackConnections/types/SlackConnectionPage.js +44 -0
- package/dist/cjs/serialization/resources/slackConnections/types/SlackConnectionPerson.d.ts +10 -0
- package/dist/cjs/serialization/resources/slackConnections/types/SlackConnectionPerson.js +42 -0
- package/dist/cjs/serialization/resources/slackConnections/types/index.d.ts +4 -0
- package/dist/cjs/serialization/resources/slackConnections/types/index.js +20 -0
- package/dist/cjs/serialization/resources/steps/types/NudgeReason.d.ts +7 -0
- package/dist/cjs/serialization/resources/steps/types/NudgeReason.js +39 -0
- package/dist/cjs/serialization/resources/steps/types/NudgeResponse.d.ts +7 -1
- package/dist/cjs/serialization/resources/steps/types/NudgeResponse.js +7 -1
- package/dist/cjs/serialization/resources/steps/types/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/steps/types/index.js +1 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/Client.d.mts +3 -0
- package/dist/esm/Client.mjs +5 -0
- package/dist/esm/api/resources/artifacts/client/Client.d.mts +14 -6
- package/dist/esm/api/resources/artifacts/client/Client.mjs +16 -7
- package/dist/esm/api/resources/artifacts/client/requests/ListAllArtifactsRequest.d.mts +13 -1
- package/dist/esm/api/resources/dory/client/Client.d.mts +28 -5
- package/dist/esm/api/resources/dory/client/Client.mjs +86 -5
- package/dist/esm/api/resources/dory/types/CreateEventRequest.d.mts +9 -4
- package/dist/esm/api/resources/dory/types/EventCalendarInvite.d.mts +41 -0
- package/dist/esm/api/resources/dory/types/EventCalendarInvite.mjs +2 -0
- package/dist/esm/api/resources/dory/types/UpdateEventRequest.d.mts +9 -4
- package/dist/esm/api/resources/dory/types/index.d.mts +1 -0
- package/dist/esm/api/resources/dory/types/index.mjs +1 -0
- package/dist/esm/api/resources/index.d.mts +3 -0
- package/dist/esm/api/resources/index.mjs +3 -0
- package/dist/esm/api/resources/insights/client/Client.mjs +2 -1
- package/dist/esm/api/resources/insights/client/requests/ListInsightsRequest.d.mts +12 -1
- package/dist/esm/api/resources/launches/client/Client.d.mts +29 -13
- package/dist/esm/api/resources/launches/client/Client.mjs +48 -14
- package/dist/esm/api/resources/launches/client/requests/ListLaunchesRequest.d.mts +25 -1
- package/dist/esm/api/resources/launches/types/LaunchActivityVerb.d.mts +3 -0
- package/dist/esm/api/resources/launches/types/LaunchActivityVerb.mjs +3 -0
- package/dist/esm/api/resources/launches/types/LinkTicketingProjectRequest.d.mts +2 -2
- package/dist/esm/api/resources/launches/types/SyncTicketingProjectResponse.d.mts +1 -1
- package/dist/esm/api/resources/launches/types/TicketingProject.d.mts +13 -7
- package/dist/esm/api/resources/okr/client/Client.d.mts +8 -0
- package/dist/esm/api/resources/okr/client/Client.mjs +8 -0
- package/dist/esm/api/resources/okr/types/KeyResult.d.mts +13 -0
- package/dist/esm/api/resources/okr/types/KeyResultMetric.d.mts +12 -0
- package/dist/esm/api/resources/okr/types/KeyResultMetric.mjs +2 -0
- package/dist/esm/api/resources/okr/types/MetricSourceKind.d.mts +10 -0
- package/dist/esm/api/resources/okr/types/MetricSourceKind.mjs +10 -0
- package/dist/esm/api/resources/okr/types/index.d.mts +2 -0
- package/dist/esm/api/resources/okr/types/index.mjs +2 -0
- package/dist/esm/api/resources/organization/client/Client.d.mts +5 -2
- package/dist/esm/api/resources/organization/client/Client.mjs +5 -2
- package/dist/esm/api/resources/organization/types/Organization.d.mts +21 -0
- package/dist/esm/api/resources/organization/types/UpdateOrganizationRequest.d.mts +15 -0
- package/dist/esm/api/resources/platform/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/platform/client/Client.mjs +2 -2
- package/dist/esm/api/resources/platform/types/NotificationChannels.d.mts +7 -2
- package/dist/esm/api/resources/platform/types/UpdateNotificationChannels.d.mts +1 -0
- package/dist/esm/api/resources/platform/types/UpdateNotificationPreferencesRequest.d.mts +1 -1
- package/dist/esm/api/resources/platform/types/WaitingForSeat.d.mts +2 -2
- package/dist/esm/api/resources/posts/client/Client.d.mts +5 -2
- package/dist/esm/api/resources/posts/client/Client.mjs +13 -2
- package/dist/esm/api/resources/posts/types/LaunchPost.d.mts +4 -3
- package/dist/esm/api/resources/slackConnections/client/Client.d.mts +56 -0
- package/dist/esm/api/resources/slackConnections/client/Client.mjs +206 -0
- package/dist/esm/api/resources/slackConnections/client/index.d.mts +1 -0
- package/dist/esm/api/resources/slackConnections/client/index.mjs +1 -0
- package/dist/esm/api/resources/slackConnections/client/requests/ListSlackConnectionsRequest.d.mts +9 -0
- package/dist/esm/api/resources/slackConnections/client/requests/ListSlackConnectionsRequest.mjs +2 -0
- package/dist/esm/api/resources/slackConnections/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/slackConnections/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/slackConnections/exports.d.mts +2 -0
- package/dist/esm/api/resources/slackConnections/exports.mjs +3 -0
- package/dist/esm/api/resources/slackConnections/index.d.mts +2 -0
- package/dist/esm/api/resources/slackConnections/index.mjs +2 -0
- package/dist/esm/api/resources/slackConnections/types/SlackConnection.d.mts +16 -0
- package/dist/esm/api/resources/slackConnections/types/SlackConnection.mjs +2 -0
- package/dist/esm/api/resources/slackConnections/types/SlackConnectionAccount.d.mts +15 -0
- package/dist/esm/api/resources/slackConnections/types/SlackConnectionAccount.mjs +2 -0
- package/dist/esm/api/resources/slackConnections/types/SlackConnectionPage.d.mts +7 -0
- package/dist/esm/api/resources/slackConnections/types/SlackConnectionPage.mjs +2 -0
- package/dist/esm/api/resources/slackConnections/types/SlackConnectionPerson.d.mts +7 -0
- package/dist/esm/api/resources/slackConnections/types/SlackConnectionPerson.mjs +2 -0
- package/dist/esm/api/resources/slackConnections/types/index.d.mts +4 -0
- package/dist/esm/api/resources/slackConnections/types/index.mjs +4 -0
- package/dist/esm/api/resources/steps/client/Client.d.mts +15 -9
- package/dist/esm/api/resources/steps/client/Client.mjs +17 -10
- package/dist/esm/api/resources/steps/client/requests/ListReviewsRequest.d.mts +12 -1
- package/dist/esm/api/resources/steps/types/NudgeReason.d.mts +10 -0
- package/dist/esm/api/resources/steps/types/NudgeReason.mjs +10 -0
- package/dist/esm/api/resources/steps/types/NudgeResponse.d.mts +11 -1
- package/dist/esm/api/resources/steps/types/index.d.mts +1 -0
- package/dist/esm/api/resources/steps/types/index.mjs +1 -0
- package/dist/esm/serialization/resources/dory/types/EventCalendarInvite.d.mts +20 -0
- package/dist/esm/serialization/resources/dory/types/EventCalendarInvite.mjs +16 -0
- package/dist/esm/serialization/resources/dory/types/index.d.mts +1 -0
- package/dist/esm/serialization/resources/dory/types/index.mjs +1 -0
- package/dist/esm/serialization/resources/index.d.mts +2 -0
- package/dist/esm/serialization/resources/index.mjs +2 -0
- package/dist/esm/serialization/resources/launches/types/LaunchActivityVerb.d.mts +1 -1
- package/dist/esm/serialization/resources/launches/types/LaunchActivityVerb.mjs +1 -0
- package/dist/esm/serialization/resources/okr/types/KeyResult.d.mts +3 -0
- package/dist/esm/serialization/resources/okr/types/KeyResult.mjs +3 -0
- package/dist/esm/serialization/resources/okr/types/KeyResultMetric.d.mts +12 -0
- package/dist/esm/serialization/resources/okr/types/KeyResultMetric.mjs +8 -0
- package/dist/esm/serialization/resources/okr/types/MetricSourceKind.d.mts +7 -0
- package/dist/esm/serialization/resources/okr/types/MetricSourceKind.mjs +3 -0
- package/dist/esm/serialization/resources/okr/types/index.d.mts +2 -0
- package/dist/esm/serialization/resources/okr/types/index.mjs +2 -0
- package/dist/esm/serialization/resources/organization/types/Organization.d.mts +2 -0
- package/dist/esm/serialization/resources/organization/types/Organization.mjs +2 -0
- package/dist/esm/serialization/resources/organization/types/UpdateOrganizationRequest.d.mts +2 -0
- package/dist/esm/serialization/resources/organization/types/UpdateOrganizationRequest.mjs +2 -0
- package/dist/esm/serialization/resources/platform/types/NotificationChannels.d.mts +1 -0
- package/dist/esm/serialization/resources/platform/types/NotificationChannels.mjs +1 -0
- package/dist/esm/serialization/resources/platform/types/UpdateNotificationChannels.d.mts +1 -0
- package/dist/esm/serialization/resources/platform/types/UpdateNotificationChannels.mjs +1 -0
- package/dist/esm/serialization/resources/slackConnections/index.d.mts +1 -0
- package/dist/esm/serialization/resources/slackConnections/index.mjs +1 -0
- package/dist/esm/serialization/resources/slackConnections/types/SlackConnection.d.mts +14 -0
- package/dist/esm/serialization/resources/slackConnections/types/SlackConnection.mjs +10 -0
- package/dist/esm/serialization/resources/slackConnections/types/SlackConnectionAccount.d.mts +11 -0
- package/dist/esm/serialization/resources/slackConnections/types/SlackConnectionAccount.mjs +7 -0
- package/dist/esm/serialization/resources/slackConnections/types/SlackConnectionPage.d.mts +12 -0
- package/dist/esm/serialization/resources/slackConnections/types/SlackConnectionPage.mjs +8 -0
- package/dist/esm/serialization/resources/slackConnections/types/SlackConnectionPerson.d.mts +10 -0
- package/dist/esm/serialization/resources/slackConnections/types/SlackConnectionPerson.mjs +6 -0
- package/dist/esm/serialization/resources/slackConnections/types/index.d.mts +4 -0
- package/dist/esm/serialization/resources/slackConnections/types/index.mjs +4 -0
- package/dist/esm/serialization/resources/steps/types/NudgeReason.d.mts +7 -0
- package/dist/esm/serialization/resources/steps/types/NudgeReason.mjs +3 -0
- package/dist/esm/serialization/resources/steps/types/NudgeResponse.d.mts +7 -1
- package/dist/esm/serialization/resources/steps/types/NudgeResponse.mjs +7 -1
- package/dist/esm/serialization/resources/steps/types/index.d.mts +1 -0
- package/dist/esm/serialization/resources/steps/types/index.mjs +1 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +13 -1
- package/reference.md +285 -39
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.SlackConnectionPerson = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
39
|
+
exports.SlackConnectionPerson = core.serialization.object({
|
|
40
|
+
id: core.serialization.string(),
|
|
41
|
+
name: core.serialization.string(),
|
|
42
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./SlackConnection.js"), exports);
|
|
18
|
+
__exportStar(require("./SlackConnectionAccount.js"), exports);
|
|
19
|
+
__exportStar(require("./SlackConnectionPage.js"), exports);
|
|
20
|
+
__exportStar(require("./SlackConnectionPerson.js"), exports);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as Taktoria from "../../../../api/index.js";
|
|
2
|
+
import * as core from "../../../../core/index.js";
|
|
3
|
+
import type * as serializers from "../../../index.js";
|
|
4
|
+
export declare const NudgeReason: core.serialization.Schema<serializers.NudgeReason.Raw, Taktoria.NudgeReason>;
|
|
5
|
+
export declare namespace NudgeReason {
|
|
6
|
+
type Raw = "throttled" | "draft";
|
|
7
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.NudgeReason = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
39
|
+
exports.NudgeReason = core.serialization.enum_(["throttled", "draft"]);
|
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
import type * as Taktoria from "../../../../api/index.js";
|
|
2
2
|
import * as core from "../../../../core/index.js";
|
|
3
3
|
import type * as serializers from "../../../index.js";
|
|
4
|
+
import { User } from "../../commons/types/User.js";
|
|
5
|
+
import { NudgeReason } from "./NudgeReason.js";
|
|
4
6
|
export declare const NudgeResponse: core.serialization.ObjectSchema<serializers.NudgeResponse.Raw, Taktoria.NudgeResponse>;
|
|
5
7
|
export declare namespace NudgeResponse {
|
|
6
8
|
interface Raw {
|
|
7
|
-
queued: boolean;
|
|
8
9
|
stepId: string;
|
|
10
|
+
sent: boolean;
|
|
11
|
+
reason?: NudgeReason.Raw | null;
|
|
12
|
+
retryInMinutes?: number | null;
|
|
13
|
+
reviewer: User.Raw;
|
|
14
|
+
queued: boolean;
|
|
9
15
|
}
|
|
10
16
|
}
|
|
@@ -36,7 +36,13 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
exports.NudgeResponse = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../core/index.js"));
|
|
39
|
+
const User_js_1 = require("../../commons/types/User.js");
|
|
40
|
+
const NudgeReason_js_1 = require("./NudgeReason.js");
|
|
39
41
|
exports.NudgeResponse = core.serialization.object({
|
|
40
|
-
queued: core.serialization.boolean(),
|
|
41
42
|
stepId: core.serialization.string(),
|
|
43
|
+
sent: core.serialization.boolean(),
|
|
44
|
+
reason: NudgeReason_js_1.NudgeReason.optional(),
|
|
45
|
+
retryInMinutes: core.serialization.number().optional(),
|
|
46
|
+
reviewer: User_js_1.User,
|
|
47
|
+
queued: core.serialization.boolean(),
|
|
42
48
|
});
|
|
@@ -2,6 +2,7 @@ export * from "./CreateStepRequest.js";
|
|
|
2
2
|
export * from "./DecideStepRequest.js";
|
|
3
3
|
export * from "./GeneratedSteps.js";
|
|
4
4
|
export * from "./LaunchStep.js";
|
|
5
|
+
export * from "./NudgeReason.js";
|
|
5
6
|
export * from "./NudgeResponse.js";
|
|
6
7
|
export * from "./SetDecisionReasonRequest.js";
|
|
7
8
|
export * from "./StepList.js";
|
|
@@ -18,6 +18,7 @@ __exportStar(require("./CreateStepRequest.js"), exports);
|
|
|
18
18
|
__exportStar(require("./DecideStepRequest.js"), exports);
|
|
19
19
|
__exportStar(require("./GeneratedSteps.js"), exports);
|
|
20
20
|
__exportStar(require("./LaunchStep.js"), exports);
|
|
21
|
+
__exportStar(require("./NudgeReason.js"), exports);
|
|
21
22
|
__exportStar(require("./NudgeResponse.js"), exports);
|
|
22
23
|
__exportStar(require("./SetDecisionReasonRequest.js"), exports);
|
|
23
24
|
__exportStar(require("./StepList.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.1.
|
|
1
|
+
export declare const SDK_VERSION = "0.1.2";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
|
|
|
6
6
|
const headers = mergeHeaders({
|
|
7
7
|
"X-Fern-Language": "JavaScript",
|
|
8
8
|
"X-Fern-SDK-Name": "@taktoria/sdk",
|
|
9
|
-
"X-Fern-SDK-Version": "0.1.
|
|
10
|
-
"User-Agent": "@taktoria/sdk/0.1.
|
|
9
|
+
"X-Fern-SDK-Version": "0.1.2",
|
|
10
|
+
"User-Agent": "@taktoria/sdk/0.1.2",
|
|
11
11
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
12
12
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
13
13
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
package/dist/esm/Client.d.mts
CHANGED
|
@@ -20,6 +20,7 @@ import { PlatformClient } from "./api/resources/platform/client/Client.mjs";
|
|
|
20
20
|
import { PostsClient } from "./api/resources/posts/client/Client.mjs";
|
|
21
21
|
import { ProcessClient } from "./api/resources/process/client/Client.mjs";
|
|
22
22
|
import { SearchClient } from "./api/resources/search/client/Client.mjs";
|
|
23
|
+
import { SlackConnectionsClient } from "./api/resources/slackConnections/client/Client.mjs";
|
|
23
24
|
import { StepsClient } from "./api/resources/steps/client/Client.mjs";
|
|
24
25
|
import type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.mjs";
|
|
25
26
|
import { type NormalizedClientOptionsWithAuth } from "./BaseClient.mjs";
|
|
@@ -53,6 +54,7 @@ export declare class TaktoriaClient {
|
|
|
53
54
|
protected _posts: PostsClient | undefined;
|
|
54
55
|
protected _process: ProcessClient | undefined;
|
|
55
56
|
protected _search: SearchClient | undefined;
|
|
57
|
+
protected _slackConnections: SlackConnectionsClient | undefined;
|
|
56
58
|
protected _steps: StepsClient | undefined;
|
|
57
59
|
constructor(options: TaktoriaClient.Options);
|
|
58
60
|
get appDomains(): AppDomainsClient;
|
|
@@ -77,6 +79,7 @@ export declare class TaktoriaClient {
|
|
|
77
79
|
get posts(): PostsClient;
|
|
78
80
|
get process(): ProcessClient;
|
|
79
81
|
get search(): SearchClient;
|
|
82
|
+
get slackConnections(): SlackConnectionsClient;
|
|
80
83
|
get steps(): StepsClient;
|
|
81
84
|
/**
|
|
82
85
|
* Make a passthrough request using the SDK's configured auth, retry, logging, etc.
|
package/dist/esm/Client.mjs
CHANGED
|
@@ -30,6 +30,7 @@ import { PlatformClient } from "./api/resources/platform/client/Client.mjs";
|
|
|
30
30
|
import { PostsClient } from "./api/resources/posts/client/Client.mjs";
|
|
31
31
|
import { ProcessClient } from "./api/resources/process/client/Client.mjs";
|
|
32
32
|
import { SearchClient } from "./api/resources/search/client/Client.mjs";
|
|
33
|
+
import { SlackConnectionsClient } from "./api/resources/slackConnections/client/Client.mjs";
|
|
33
34
|
import { StepsClient } from "./api/resources/steps/client/Client.mjs";
|
|
34
35
|
import { normalizeClientOptionsWithAuth } from "./BaseClient.mjs";
|
|
35
36
|
import * as core from "./core/index.mjs";
|
|
@@ -125,6 +126,10 @@ export class TaktoriaClient {
|
|
|
125
126
|
var _a;
|
|
126
127
|
return ((_a = this._search) !== null && _a !== void 0 ? _a : (this._search = new SearchClient(this._options)));
|
|
127
128
|
}
|
|
129
|
+
get slackConnections() {
|
|
130
|
+
var _a;
|
|
131
|
+
return ((_a = this._slackConnections) !== null && _a !== void 0 ? _a : (this._slackConnections = new SlackConnectionsClient(this._options)));
|
|
132
|
+
}
|
|
128
133
|
get steps() {
|
|
129
134
|
var _a;
|
|
130
135
|
return ((_a = this._steps) !== null && _a !== void 0 ? _a : (this._steps = new StepsClient(this._options)));
|
|
@@ -14,7 +14,7 @@ export declare class ArtifactsClient {
|
|
|
14
14
|
* Every launch's artifacts, as the Artifacts page shows them across
|
|
15
15
|
* launches: by their launch's planned launch date (drafts without one
|
|
16
16
|
* first), then by type, each with its launch. Gather a quarter's
|
|
17
|
-
* learnings, say, with `type=LEARNINGS&
|
|
17
|
+
* learnings, say, with `type=LEARNINGS&period=2026-Q3`. A launch
|
|
18
18
|
* has its artifacts once its steps are added or they are created
|
|
19
19
|
* (`POST /launches/{launchId}/artifacts`); one with none is not listed.
|
|
20
20
|
* Needs `artifacts:read`.
|
|
@@ -117,9 +117,13 @@ export declare class ArtifactsClient {
|
|
|
117
117
|
* `outcome` is `replaced`. The link is kept on the artifact
|
|
118
118
|
* (`exports`). Writing it changes the launch, so a Viewer of LaunchCal
|
|
119
119
|
* is refused. Counts against `docs-export`. Needs `artifacts:write`.
|
|
120
|
-
*
|
|
121
|
-
* tool
|
|
122
|
-
*
|
|
120
|
+
* An artifact with nothing written in it is `409 artifact_empty`, a
|
|
121
|
+
* tool this deployment does not export to `409 docs_tool_unavailable`,
|
|
122
|
+
* a tool the person has not connected `409 docs_not_connected`, a
|
|
123
|
+
* connection the tool turned down `409 docs_reconnect`, a
|
|
124
|
+
* `destinationId` that cannot take a page or that their account
|
|
125
|
+
* cannot reach `409 docs_destination_invalid`, and a tool that did
|
|
126
|
+
* not answer `502 upstream_error`.
|
|
123
127
|
*
|
|
124
128
|
* @param {string} launchId
|
|
125
129
|
* @param {Taktoria.ArtifactType} type
|
|
@@ -164,8 +168,12 @@ export declare class ArtifactsClient {
|
|
|
164
168
|
* Where the signed-in person may export to in a tool, read from it with
|
|
165
169
|
* their own account: the Notion pages they shared with Taktoria when
|
|
166
170
|
* connecting (and the pages in them), or the Confluence spaces they can
|
|
167
|
-
* see. Empty for Google Docs. Counts against `docs-browse`.
|
|
168
|
-
* `
|
|
171
|
+
* see. Empty for Google Docs. Counts against `docs-browse`. A
|
|
172
|
+
* workspace key is refused (`person_required`); a tool this deployment
|
|
173
|
+
* does not export to is `409 docs_tool_unavailable`, one the person
|
|
174
|
+
* has not connected `409 docs_not_connected`, a connection the tool
|
|
175
|
+
* turned down `409 docs_reconnect`, and a tool that did not answer
|
|
176
|
+
* `502 upstream_error`. Needs `artifacts:read`.
|
|
169
177
|
*
|
|
170
178
|
* @param {Taktoria.DocsTool} tool
|
|
171
179
|
* @param {Taktoria.ListDocsDestinationsRequest} request
|
|
@@ -25,7 +25,7 @@ export class ArtifactsClient {
|
|
|
25
25
|
* Every launch's artifacts, as the Artifacts page shows them across
|
|
26
26
|
* launches: by their launch's planned launch date (drafts without one
|
|
27
27
|
* first), then by type, each with its launch. Gather a quarter's
|
|
28
|
-
* learnings, say, with `type=LEARNINGS&
|
|
28
|
+
* learnings, say, with `type=LEARNINGS&period=2026-Q3`. A launch
|
|
29
29
|
* has its artifacts once its steps are added or they are created
|
|
30
30
|
* (`POST /launches/{launchId}/artifacts`); one with none is not listed.
|
|
31
31
|
* Needs `artifacts:read`.
|
|
@@ -53,7 +53,7 @@ export class ArtifactsClient {
|
|
|
53
53
|
__listAll() {
|
|
54
54
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
55
55
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
56
|
-
const { type: type_, year, quarter, limit, cursor } = request;
|
|
56
|
+
const { type: type_, period, year, quarter, limit, cursor } = request;
|
|
57
57
|
const _queryParams = {
|
|
58
58
|
type: type_ != null
|
|
59
59
|
? serializers.ArtifactType.jsonOrThrow(type_, {
|
|
@@ -61,6 +61,7 @@ export class ArtifactsClient {
|
|
|
61
61
|
omitUndefined: true,
|
|
62
62
|
})
|
|
63
63
|
: undefined,
|
|
64
|
+
period,
|
|
64
65
|
year,
|
|
65
66
|
quarter,
|
|
66
67
|
limit,
|
|
@@ -481,9 +482,13 @@ export class ArtifactsClient {
|
|
|
481
482
|
* `outcome` is `replaced`. The link is kept on the artifact
|
|
482
483
|
* (`exports`). Writing it changes the launch, so a Viewer of LaunchCal
|
|
483
484
|
* is refused. Counts against `docs-export`. Needs `artifacts:write`.
|
|
484
|
-
*
|
|
485
|
-
* tool
|
|
486
|
-
*
|
|
485
|
+
* An artifact with nothing written in it is `409 artifact_empty`, a
|
|
486
|
+
* tool this deployment does not export to `409 docs_tool_unavailable`,
|
|
487
|
+
* a tool the person has not connected `409 docs_not_connected`, a
|
|
488
|
+
* connection the tool turned down `409 docs_reconnect`, a
|
|
489
|
+
* `destinationId` that cannot take a page or that their account
|
|
490
|
+
* cannot reach `409 docs_destination_invalid`, and a tool that did
|
|
491
|
+
* not answer `502 upstream_error`.
|
|
487
492
|
*
|
|
488
493
|
* @param {string} launchId
|
|
489
494
|
* @param {Taktoria.ArtifactType} type
|
|
@@ -682,8 +687,12 @@ export class ArtifactsClient {
|
|
|
682
687
|
* Where the signed-in person may export to in a tool, read from it with
|
|
683
688
|
* their own account: the Notion pages they shared with Taktoria when
|
|
684
689
|
* connecting (and the pages in them), or the Confluence spaces they can
|
|
685
|
-
* see. Empty for Google Docs. Counts against `docs-browse`.
|
|
686
|
-
* `
|
|
690
|
+
* see. Empty for Google Docs. Counts against `docs-browse`. A
|
|
691
|
+
* workspace key is refused (`person_required`); a tool this deployment
|
|
692
|
+
* does not export to is `409 docs_tool_unavailable`, one the person
|
|
693
|
+
* has not connected `409 docs_not_connected`, a connection the tool
|
|
694
|
+
* turned down `409 docs_reconnect`, and a tool that did not answer
|
|
695
|
+
* `502 upstream_error`. Needs `artifacts:read`.
|
|
687
696
|
*
|
|
688
697
|
* @param {Taktoria.DocsTool} tool
|
|
689
698
|
* @param {Taktoria.ListDocsDestinationsRequest} request
|
|
@@ -10,7 +10,19 @@ import type * as Taktoria from "../../../../index.mjs";
|
|
|
10
10
|
export interface ListAllArtifactsRequest {
|
|
11
11
|
/** Only this kind; left out, all three. */
|
|
12
12
|
type?: Taktoria.ArtifactType;
|
|
13
|
-
/**
|
|
13
|
+
/**
|
|
14
|
+
* A fiscal period, as the app's period picker and its URL name them:
|
|
15
|
+
* a quarter (`2026-Q4`), a whole year (`2027`), `upcoming` for this
|
|
16
|
+
* quarter and every one after it, or `all`. Repeat it for several
|
|
17
|
+
* (`period=2026-Q4&period=2027-Q1`); `upcoming` or `all` among them
|
|
18
|
+
* wins over the rest. Narrows by the launch's planned launch date in
|
|
19
|
+
* the workspace's fiscal years. With `upcoming` it keeps those with
|
|
20
|
+
* no date yet, as the app's lists do. Left out, with no `year`,
|
|
21
|
+
* every period. Wins over `year` and `quarter`; anything else is a
|
|
22
|
+
* `422 validation_error`.
|
|
23
|
+
*/
|
|
24
|
+
period?: string | string[];
|
|
25
|
+
/** One fiscal year, as the workspace's fiscal year start names it. Narrows by the launch's planned launch date; left out, every year. `period` takes several. */
|
|
14
26
|
year?: number;
|
|
15
27
|
/** A fiscal quarter, 1 to 4, of `year`. Needs `year`; left out, the whole year. */
|
|
16
28
|
quarter?: number;
|
|
@@ -81,11 +81,12 @@ export declare class DoryClient {
|
|
|
81
81
|
private __updateEvent;
|
|
82
82
|
/**
|
|
83
83
|
* A copy of the event, to run it again, Not started until it is given
|
|
84
|
-
* a start. Its description,
|
|
85
|
-
*
|
|
86
|
-
*
|
|
87
|
-
* participants, results, billing
|
|
88
|
-
* and belongs to whoever made it.
|
|
84
|
+
* a start. Its description, passcode, audience and domains, room and
|
|
85
|
+
* presenter settings, instructions, meeting link (`meetingUrl`, so a
|
|
86
|
+
* recurring call keeps its link), time zone, hosts and polls (as
|
|
87
|
+
* drafts) come along; its questions, participants, results, billing
|
|
88
|
+
* and dates do not. It gets a new code and belongs to whoever made it.
|
|
89
|
+
* Needs `events:write`.
|
|
89
90
|
*
|
|
90
91
|
* @param {string} eventId
|
|
91
92
|
* @param {Taktoria.DuplicateEventRequest} request
|
|
@@ -365,6 +366,28 @@ export declare class DoryClient {
|
|
|
365
366
|
*/
|
|
366
367
|
getEventJoinLink(eventId: string, request?: Taktoria.GetEventJoinLinkRequest, requestOptions?: DoryClient.RequestOptions): core.HttpResponsePromise<Taktoria.EventJoinLink>;
|
|
367
368
|
private __getEventJoinLink;
|
|
369
|
+
/**
|
|
370
|
+
* The event for a calendar and a meeting invite, as the console's
|
|
371
|
+
* **Add to calendar** gives it: the lines to paste into an invite,
|
|
372
|
+
* links that open Google Calendar's and Outlook's new-event pages
|
|
373
|
+
* filled in, and the .ics file, each with the join link and code from
|
|
374
|
+
* `getEventJoinLink`, never the passcode. An event with no `startsAt`
|
|
375
|
+
* has the invite text only. In the signed-in person's language,
|
|
376
|
+
* English for a key. Needs `events:read`.
|
|
377
|
+
*
|
|
378
|
+
* @param {string} eventId
|
|
379
|
+
* @param {DoryClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
380
|
+
*
|
|
381
|
+
* @throws {@link Taktoria.NotFoundError}
|
|
382
|
+
* @throws {@link Taktoria.TooManyRequestsError}
|
|
383
|
+
* @throws {@link errors.TaktoriaError}
|
|
384
|
+
* @throws {@link errors.TaktoriaTimeoutError}
|
|
385
|
+
*
|
|
386
|
+
* @example
|
|
387
|
+
* await client.dory.getEventCalendarInvite("evt_7f3a")
|
|
388
|
+
*/
|
|
389
|
+
getEventCalendarInvite(eventId: string, requestOptions?: DoryClient.RequestOptions): core.HttpResponsePromise<Taktoria.EventCalendarInvite>;
|
|
390
|
+
private __getEventCalendarInvite;
|
|
368
391
|
/**
|
|
369
392
|
* @param {string} eventId
|
|
370
393
|
* @param {Taktoria.ListQuestionsRequest} request
|
|
@@ -425,11 +425,12 @@ export class DoryClient {
|
|
|
425
425
|
}
|
|
426
426
|
/**
|
|
427
427
|
* A copy of the event, to run it again, Not started until it is given
|
|
428
|
-
* a start. Its description,
|
|
429
|
-
*
|
|
430
|
-
*
|
|
431
|
-
* participants, results, billing
|
|
432
|
-
* and belongs to whoever made it.
|
|
428
|
+
* a start. Its description, passcode, audience and domains, room and
|
|
429
|
+
* presenter settings, instructions, meeting link (`meetingUrl`, so a
|
|
430
|
+
* recurring call keeps its link), time zone, hosts and polls (as
|
|
431
|
+
* drafts) come along; its questions, participants, results, billing
|
|
432
|
+
* and dates do not. It gets a new code and belongs to whoever made it.
|
|
433
|
+
* Needs `events:write`.
|
|
433
434
|
*
|
|
434
435
|
* @param {string} eventId
|
|
435
436
|
* @param {Taktoria.DuplicateEventRequest} request
|
|
@@ -1605,6 +1606,86 @@ export class DoryClient {
|
|
|
1605
1606
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/dory/events/{eventId}/join");
|
|
1606
1607
|
});
|
|
1607
1608
|
}
|
|
1609
|
+
/**
|
|
1610
|
+
* The event for a calendar and a meeting invite, as the console's
|
|
1611
|
+
* **Add to calendar** gives it: the lines to paste into an invite,
|
|
1612
|
+
* links that open Google Calendar's and Outlook's new-event pages
|
|
1613
|
+
* filled in, and the .ics file, each with the join link and code from
|
|
1614
|
+
* `getEventJoinLink`, never the passcode. An event with no `startsAt`
|
|
1615
|
+
* has the invite text only. In the signed-in person's language,
|
|
1616
|
+
* English for a key. Needs `events:read`.
|
|
1617
|
+
*
|
|
1618
|
+
* @param {string} eventId
|
|
1619
|
+
* @param {DoryClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
1620
|
+
*
|
|
1621
|
+
* @throws {@link Taktoria.NotFoundError}
|
|
1622
|
+
* @throws {@link Taktoria.TooManyRequestsError}
|
|
1623
|
+
* @throws {@link errors.TaktoriaError}
|
|
1624
|
+
* @throws {@link errors.TaktoriaTimeoutError}
|
|
1625
|
+
*
|
|
1626
|
+
* @example
|
|
1627
|
+
* await client.dory.getEventCalendarInvite("evt_7f3a")
|
|
1628
|
+
*/
|
|
1629
|
+
getEventCalendarInvite(eventId, requestOptions) {
|
|
1630
|
+
return core.HttpResponsePromise.fromPromise(this.__getEventCalendarInvite(eventId, requestOptions));
|
|
1631
|
+
}
|
|
1632
|
+
__getEventCalendarInvite(eventId, requestOptions) {
|
|
1633
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1634
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1635
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
1636
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
1637
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
1638
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.TaktoriaEnvironment.Production, `/dory/events/${core.url.encodePathParam(eventId)}/calendar-invite`),
|
|
1639
|
+
method: "GET",
|
|
1640
|
+
headers: _headers,
|
|
1641
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
1642
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
1643
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
1644
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1645
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
1646
|
+
logging: this._options.logging,
|
|
1647
|
+
});
|
|
1648
|
+
if (_response.ok) {
|
|
1649
|
+
return {
|
|
1650
|
+
data: serializers.EventCalendarInvite.parseOrThrow(_response.body, {
|
|
1651
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1652
|
+
allowUnrecognizedUnionMembers: true,
|
|
1653
|
+
allowUnrecognizedEnumValues: true,
|
|
1654
|
+
skipValidation: true,
|
|
1655
|
+
breadcrumbsPrefix: ["response"],
|
|
1656
|
+
}),
|
|
1657
|
+
rawResponse: _response.rawResponse,
|
|
1658
|
+
};
|
|
1659
|
+
}
|
|
1660
|
+
if (_response.error.reason === "status-code") {
|
|
1661
|
+
switch (_response.error.statusCode) {
|
|
1662
|
+
case 404:
|
|
1663
|
+
throw new Taktoria.NotFoundError(serializers.ErrorBody.parseOrThrow(_response.error.body, {
|
|
1664
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1665
|
+
allowUnrecognizedUnionMembers: true,
|
|
1666
|
+
allowUnrecognizedEnumValues: true,
|
|
1667
|
+
skipValidation: true,
|
|
1668
|
+
breadcrumbsPrefix: ["response"],
|
|
1669
|
+
}), _response.rawResponse);
|
|
1670
|
+
case 429:
|
|
1671
|
+
throw new Taktoria.TooManyRequestsError(serializers.ErrorBody.parseOrThrow(_response.error.body, {
|
|
1672
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1673
|
+
allowUnrecognizedUnionMembers: true,
|
|
1674
|
+
allowUnrecognizedEnumValues: true,
|
|
1675
|
+
skipValidation: true,
|
|
1676
|
+
breadcrumbsPrefix: ["response"],
|
|
1677
|
+
}), _response.rawResponse);
|
|
1678
|
+
default:
|
|
1679
|
+
throw new errors.TaktoriaError({
|
|
1680
|
+
statusCode: _response.error.statusCode,
|
|
1681
|
+
body: _response.error.body,
|
|
1682
|
+
rawResponse: _response.rawResponse,
|
|
1683
|
+
});
|
|
1684
|
+
}
|
|
1685
|
+
}
|
|
1686
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/dory/events/{eventId}/calendar-invite");
|
|
1687
|
+
});
|
|
1688
|
+
}
|
|
1608
1689
|
/**
|
|
1609
1690
|
* @param {string} eventId
|
|
1610
1691
|
* @param {Taktoria.ListQuestionsRequest} request
|
|
@@ -38,10 +38,15 @@ export interface CreateEventRequest {
|
|
|
38
38
|
instructions?: string;
|
|
39
39
|
/**
|
|
40
40
|
* The Zoom, Google Meet or Microsoft Teams call the event runs
|
|
41
|
-
* beside
|
|
42
|
-
* `
|
|
43
|
-
*
|
|
44
|
-
*
|
|
41
|
+
* beside, as an https join link. For example: a Zoom meeting, webinar
|
|
42
|
+
* or personal room (`zoom.us/j/…`, `/w/…`, `/my/…`, on `zoom.us`,
|
|
43
|
+
* `zoom.com` or `zoomgov.com` and their regional hosts such as
|
|
44
|
+
* `us02web.zoom.us`); a Meet code (`meet.google.com/abc-defg-hij`);
|
|
45
|
+
* or a Teams meeting (`teams.microsoft.com/l/meetup-join/…` or
|
|
46
|
+
* `/meet/…`, on `teams.microsoft.com`, `teams.live.com`,
|
|
47
|
+
* `teams.cloud.microsoft` or the government clouds). A link still
|
|
48
|
+
* wrapped in Outlook's Safe Links is unwrapped. Anything else, or a
|
|
49
|
+
* Zoom start link (`/s/…`), is refused (422). Empty or null clears it.
|
|
45
50
|
*/
|
|
46
51
|
meetingUrl?: string;
|
|
47
52
|
allowAnonymous?: boolean;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An event for a calendar and a meeting invite, as the console's **Add to
|
|
3
|
+
* calendar** and **Copy invite text** give it. Each part carries the
|
|
4
|
+
* join link and the join code, never the passcode, which a calendar
|
|
5
|
+
* would sync and forward.
|
|
6
|
+
*/
|
|
7
|
+
export interface EventCalendarInvite {
|
|
8
|
+
eventId: string;
|
|
9
|
+
/** The code attendees can type instead of following the link. */
|
|
10
|
+
code: string;
|
|
11
|
+
/** The link to hand out, the same one `getEventJoinLink` gives. */
|
|
12
|
+
joinUrl: string;
|
|
13
|
+
/**
|
|
14
|
+
* Whether attendees must type a passcode as well, to be given to them
|
|
15
|
+
* separately. The passcode itself is never returned.
|
|
16
|
+
*/
|
|
17
|
+
hasPasscode: boolean;
|
|
18
|
+
startsAt?: Date;
|
|
19
|
+
/** Absent, a calendar gives the event an hour. */
|
|
20
|
+
endsAt?: Date;
|
|
21
|
+
/** The event's IANA time zone, which the invite's times are written in. */
|
|
22
|
+
timeZone?: string;
|
|
23
|
+
/**
|
|
24
|
+
* The title, when it runs in the event's time zone, the join link and
|
|
25
|
+
* the join code, one to a line, to paste into a meeting's invite or a
|
|
26
|
+
* message. In the signed-in person's language, English for a key.
|
|
27
|
+
*/
|
|
28
|
+
inviteText: string;
|
|
29
|
+
/** Opens Google Calendar's new-event page, filled in. Absent with no `startsAt`. */
|
|
30
|
+
googleCalendarUrl?: string;
|
|
31
|
+
/** The same for Outlook on the web, for work or school accounts. Absent with no `startsAt`. */
|
|
32
|
+
outlookUrl?: string;
|
|
33
|
+
/** The same for Outlook.com, for personal accounts. Absent with no `startsAt`. */
|
|
34
|
+
outlookComUrl?: string;
|
|
35
|
+
/**
|
|
36
|
+
* The event as an iCalendar file, for Apple Calendar or any other.
|
|
37
|
+
* Its `UID` is the event's, so adding it again updates the copy.
|
|
38
|
+
* Absent with no `startsAt`: a calendar has nowhere to put it.
|
|
39
|
+
*/
|
|
40
|
+
ics?: string;
|
|
41
|
+
}
|
|
@@ -33,10 +33,15 @@ export interface UpdateEventRequest {
|
|
|
33
33
|
instructions?: string;
|
|
34
34
|
/**
|
|
35
35
|
* The Zoom, Google Meet or Microsoft Teams call the event runs
|
|
36
|
-
* beside
|
|
37
|
-
* `
|
|
38
|
-
*
|
|
39
|
-
*
|
|
36
|
+
* beside, as an https join link. For example: a Zoom meeting, webinar
|
|
37
|
+
* or personal room (`zoom.us/j/…`, `/w/…`, `/my/…`, on `zoom.us`,
|
|
38
|
+
* `zoom.com` or `zoomgov.com` and their regional hosts such as
|
|
39
|
+
* `us02web.zoom.us`); a Meet code (`meet.google.com/abc-defg-hij`);
|
|
40
|
+
* or a Teams meeting (`teams.microsoft.com/l/meetup-join/…` or
|
|
41
|
+
* `/meet/…`, on `teams.microsoft.com`, `teams.live.com`,
|
|
42
|
+
* `teams.cloud.microsoft` or the government clouds). A link still
|
|
43
|
+
* wrapped in Outlook's Safe Links is unwrapped. Anything else, or a
|
|
44
|
+
* Zoom start link (`/s/…`), is refused (422). Empty or null clears it.
|
|
40
45
|
*/
|
|
41
46
|
meetingUrl?: string;
|
|
42
47
|
allowAnonymous?: boolean;
|
|
@@ -13,6 +13,7 @@ export * from "./CreateQuestionRequest.mjs";
|
|
|
13
13
|
export * from "./Event.mjs";
|
|
14
14
|
export * from "./EventAnalytics.mjs";
|
|
15
15
|
export * from "./EventAudience.mjs";
|
|
16
|
+
export * from "./EventCalendarInvite.mjs";
|
|
16
17
|
export * from "./EventHosts.mjs";
|
|
17
18
|
export * from "./EventJoinLink.mjs";
|
|
18
19
|
export * from "./EventPage.mjs";
|
|
@@ -13,6 +13,7 @@ export * from "./CreateQuestionRequest.mjs";
|
|
|
13
13
|
export * from "./Event.mjs";
|
|
14
14
|
export * from "./EventAnalytics.mjs";
|
|
15
15
|
export * from "./EventAudience.mjs";
|
|
16
|
+
export * from "./EventCalendarInvite.mjs";
|
|
16
17
|
export * from "./EventHosts.mjs";
|
|
17
18
|
export * from "./EventJoinLink.mjs";
|
|
18
19
|
export * from "./EventPage.mjs";
|
|
@@ -61,6 +61,9 @@ export * from "./process/types/index.mjs";
|
|
|
61
61
|
export * from "./search/client/requests/index.mjs";
|
|
62
62
|
export * as search from "./search/index.mjs";
|
|
63
63
|
export * from "./search/types/index.mjs";
|
|
64
|
+
export * from "./slackConnections/client/requests/index.mjs";
|
|
65
|
+
export * as slackConnections from "./slackConnections/index.mjs";
|
|
66
|
+
export * from "./slackConnections/types/index.mjs";
|
|
64
67
|
export * from "./steps/client/requests/index.mjs";
|
|
65
68
|
export * as steps from "./steps/index.mjs";
|
|
66
69
|
export * from "./steps/types/index.mjs";
|