@taktoria/sdk 0.1.0 → 0.1.3
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/appDomains/client/Client.js +4 -4
- package/dist/cjs/api/resources/artifacts/client/Client.d.ts +14 -6
- package/dist/cjs/api/resources/artifacts/client/Client.js +22 -13
- package/dist/cjs/api/resources/artifacts/client/requests/ListAllArtifactsRequest.d.ts +13 -1
- package/dist/cjs/api/resources/auditLogs/client/Client.js +1 -1
- package/dist/cjs/api/resources/billing/client/Client.js +1 -1
- package/dist/cjs/api/resources/domains/client/Client.js +4 -4
- package/dist/cjs/api/resources/dory/client/Client.d.ts +28 -5
- package/dist/cjs/api/resources/dory/client/Client.js +119 -38
- 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/golinks/client/Client.js +6 -6
- 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 +4 -3
- 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 +56 -22
- 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/links/client/Client.js +3 -3
- package/dist/cjs/api/resources/mcpConnections/client/Client.js +1 -1
- package/dist/cjs/api/resources/memegen/client/Client.js +8 -8
- package/dist/cjs/api/resources/okr/client/Client.d.ts +8 -0
- package/dist/cjs/api/resources/okr/client/Client.js +23 -15
- 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/partnerDomains/client/Client.js +1 -1
- package/dist/cjs/api/resources/platform/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/platform/client/Client.js +4 -4
- 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 +16 -5
- package/dist/cjs/api/resources/posts/types/LaunchPost.d.ts +4 -3
- package/dist/cjs/api/resources/process/client/Client.js +10 -10
- 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 +26 -19
- 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/core/form-data-utils/FormDataWrapper.d.ts +1 -1
- package/dist/cjs/core/form-data-utils/FormDataWrapper.js +5 -1
- package/dist/cjs/core/schemas/builders/list/list.js +3 -1
- package/dist/cjs/core/schemas/builders/object/object.js +3 -1
- package/dist/cjs/core/schemas/builders/record/record.js +6 -2
- package/dist/cjs/core/url/encodePathParam.d.ts +3 -1
- package/dist/cjs/core/url/encodePathParam.js +8 -2
- package/dist/cjs/errors/TaktoriaError.js +16 -2
- 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/appDomains/client/Client.mjs +4 -4
- package/dist/esm/api/resources/artifacts/client/Client.d.mts +14 -6
- package/dist/esm/api/resources/artifacts/client/Client.mjs +22 -13
- package/dist/esm/api/resources/artifacts/client/requests/ListAllArtifactsRequest.d.mts +13 -1
- package/dist/esm/api/resources/auditLogs/client/Client.mjs +1 -1
- package/dist/esm/api/resources/billing/client/Client.mjs +1 -1
- package/dist/esm/api/resources/domains/client/Client.mjs +4 -4
- package/dist/esm/api/resources/dory/client/Client.d.mts +28 -5
- package/dist/esm/api/resources/dory/client/Client.mjs +119 -38
- 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/golinks/client/Client.mjs +6 -6
- 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 +4 -3
- 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 +56 -22
- 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/links/client/Client.mjs +3 -3
- package/dist/esm/api/resources/mcpConnections/client/Client.mjs +1 -1
- package/dist/esm/api/resources/memegen/client/Client.mjs +8 -8
- package/dist/esm/api/resources/okr/client/Client.d.mts +8 -0
- package/dist/esm/api/resources/okr/client/Client.mjs +23 -15
- 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/partnerDomains/client/Client.mjs +1 -1
- package/dist/esm/api/resources/platform/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/platform/client/Client.mjs +4 -4
- 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 +16 -5
- package/dist/esm/api/resources/posts/types/LaunchPost.d.mts +4 -3
- package/dist/esm/api/resources/process/client/Client.mjs +10 -10
- 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 +26 -19
- 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/core/form-data-utils/FormDataWrapper.d.mts +1 -1
- package/dist/esm/core/form-data-utils/FormDataWrapper.mjs +5 -1
- package/dist/esm/core/schemas/builders/list/list.mjs +3 -1
- package/dist/esm/core/schemas/builders/object/object.mjs +3 -1
- package/dist/esm/core/schemas/builders/record/record.mjs +6 -2
- package/dist/esm/core/url/encodePathParam.d.mts +3 -1
- package/dist/esm/core/url/encodePathParam.mjs +8 -2
- package/dist/esm/errors/TaktoriaError.mjs +16 -2
- 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
|
@@ -44,7 +44,7 @@ export class StepsClient {
|
|
|
44
44
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
45
45
|
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);
|
|
46
46
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
47
|
-
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, `launches/${core.url.encodePathParam(launchId)}/steps`),
|
|
47
|
+
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, `launches/${core.url.encodePathParam(launchId, errors.TaktoriaError)}/steps`),
|
|
48
48
|
method: "GET",
|
|
49
49
|
headers: _headers,
|
|
50
50
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
@@ -122,7 +122,7 @@ export class StepsClient {
|
|
|
122
122
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
123
123
|
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);
|
|
124
124
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
125
|
-
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, `launches/${core.url.encodePathParam(launchId)}/steps`),
|
|
125
|
+
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, `launches/${core.url.encodePathParam(launchId, errors.TaktoriaError)}/steps`),
|
|
126
126
|
method: "POST",
|
|
127
127
|
headers: _headers,
|
|
128
128
|
contentType: "application/json",
|
|
@@ -196,10 +196,14 @@ export class StepsClient {
|
|
|
196
196
|
});
|
|
197
197
|
}
|
|
198
198
|
/**
|
|
199
|
-
* "Add
|
|
199
|
+
* "Add launch steps" copies the steps of the launch's own launch template
|
|
200
200
|
* (`launchTemplateId`, the workspace's default when it has none) onto
|
|
201
201
|
* the launch, back-scheduling each step from the planned launch date, and
|
|
202
|
-
* creates the press release, dashboard and learnings artifacts.
|
|
202
|
+
* creates the press release, dashboard and learnings artifacts. A step
|
|
203
|
+
* starts with its template step's default reviewer
|
|
204
|
+
* (`defaultReviewer` on the step template) when that is still a member
|
|
205
|
+
* of the workspace, who is told as anybody given a step is: once the
|
|
206
|
+
* launch is published, if it is a draft. Run again,
|
|
203
207
|
* say after the launch switches template, it adds only the steps the
|
|
204
208
|
* launch lacks: a step it already has, or the same review (the same name
|
|
205
209
|
* for the same functional team) from another template, is left out, and
|
|
@@ -226,7 +230,7 @@ export class StepsClient {
|
|
|
226
230
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
227
231
|
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);
|
|
228
232
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
229
|
-
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, `launches/${core.url.encodePathParam(launchId)}/steps/generate`),
|
|
233
|
+
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, `launches/${core.url.encodePathParam(launchId, errors.TaktoriaError)}/steps/generate`),
|
|
230
234
|
method: "POST",
|
|
231
235
|
headers: _headers,
|
|
232
236
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
@@ -306,7 +310,7 @@ export class StepsClient {
|
|
|
306
310
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
307
311
|
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);
|
|
308
312
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
309
|
-
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, `steps/${core.url.encodePathParam(stepId)}`),
|
|
313
|
+
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, `steps/${core.url.encodePathParam(stepId, errors.TaktoriaError)}`),
|
|
310
314
|
method: "GET",
|
|
311
315
|
headers: _headers,
|
|
312
316
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
@@ -381,7 +385,7 @@ export class StepsClient {
|
|
|
381
385
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
382
386
|
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);
|
|
383
387
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
384
|
-
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, `steps/${core.url.encodePathParam(stepId)}`),
|
|
388
|
+
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, `steps/${core.url.encodePathParam(stepId, errors.TaktoriaError)}`),
|
|
385
389
|
method: "PATCH",
|
|
386
390
|
headers: _headers,
|
|
387
391
|
contentType: "application/json",
|
|
@@ -476,7 +480,7 @@ export class StepsClient {
|
|
|
476
480
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
477
481
|
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);
|
|
478
482
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
479
|
-
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, `steps/${core.url.encodePathParam(stepId)}`),
|
|
483
|
+
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, `steps/${core.url.encodePathParam(stepId, errors.TaktoriaError)}`),
|
|
480
484
|
method: "DELETE",
|
|
481
485
|
headers: _headers,
|
|
482
486
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
@@ -554,7 +558,7 @@ export class StepsClient {
|
|
|
554
558
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
555
559
|
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);
|
|
556
560
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
557
|
-
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, `steps/${core.url.encodePathParam(stepId)}/decision`),
|
|
561
|
+
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, `steps/${core.url.encodePathParam(stepId, errors.TaktoriaError)}/decision`),
|
|
558
562
|
method: "POST",
|
|
559
563
|
headers: _headers,
|
|
560
564
|
contentType: "application/json",
|
|
@@ -661,7 +665,7 @@ export class StepsClient {
|
|
|
661
665
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
662
666
|
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);
|
|
663
667
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
664
|
-
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, `steps/${core.url.encodePathParam(stepId)}/reason`),
|
|
668
|
+
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, `steps/${core.url.encodePathParam(stepId, errors.TaktoriaError)}/reason`),
|
|
665
669
|
method: "POST",
|
|
666
670
|
headers: _headers,
|
|
667
671
|
contentType: "application/json",
|
|
@@ -743,12 +747,14 @@ export class StepsClient {
|
|
|
743
747
|
});
|
|
744
748
|
}
|
|
745
749
|
/**
|
|
746
|
-
* Nudge the assigned reviewer over email and Slack
|
|
747
|
-
* nudge per step
|
|
748
|
-
*
|
|
749
|
-
*
|
|
750
|
-
*
|
|
751
|
-
*
|
|
750
|
+
* Nudge the assigned reviewer over email and Slack, as the step's bell
|
|
751
|
+
* does in the app. One nudge per step goes out an hour however many
|
|
752
|
+
* times it is called, and none on a draft, whose reviewers hear
|
|
753
|
+
* nothing until it is published: `sent` says whether this one went
|
|
754
|
+
* out and, when not, `reason` says why (`throttled`, with
|
|
755
|
+
* `retryInMinutes`, or `draft`). `lastNudgedAt` on the step says when
|
|
756
|
+
* the last one went. A step with no reviewer is `409 no_reviewer`, and
|
|
757
|
+
* a key whose maker has left the workspace is `403 forbidden`: a nudge
|
|
752
758
|
* comes from a person.
|
|
753
759
|
*
|
|
754
760
|
* @param {string} stepId
|
|
@@ -762,7 +768,7 @@ export class StepsClient {
|
|
|
762
768
|
* @throws {@link errors.TaktoriaTimeoutError}
|
|
763
769
|
*
|
|
764
770
|
* @example
|
|
765
|
-
* await client.steps.nudge("
|
|
771
|
+
* await client.steps.nudge("stp_1")
|
|
766
772
|
*/
|
|
767
773
|
nudge(stepId, requestOptions) {
|
|
768
774
|
return core.HttpResponsePromise.fromPromise(this.__nudge(stepId, requestOptions));
|
|
@@ -773,7 +779,7 @@ export class StepsClient {
|
|
|
773
779
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
774
780
|
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);
|
|
775
781
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
776
|
-
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, `steps/${core.url.encodePathParam(stepId)}/nudge`),
|
|
782
|
+
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, `steps/${core.url.encodePathParam(stepId, errors.TaktoriaError)}/nudge`),
|
|
777
783
|
method: "POST",
|
|
778
784
|
headers: _headers,
|
|
779
785
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
@@ -863,7 +869,7 @@ export class StepsClient {
|
|
|
863
869
|
__reviewQueue() {
|
|
864
870
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
865
871
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
866
|
-
const { team, mine, status, reviewerUserId, q, year, quarter, limit, cursor } = request;
|
|
872
|
+
const { team, mine, status, reviewerUserId, q, period, year, quarter, limit, cursor } = request;
|
|
867
873
|
const _queryParams = {
|
|
868
874
|
team,
|
|
869
875
|
mine,
|
|
@@ -875,6 +881,7 @@ export class StepsClient {
|
|
|
875
881
|
: undefined,
|
|
876
882
|
reviewerUserId,
|
|
877
883
|
q,
|
|
884
|
+
period,
|
|
878
885
|
year,
|
|
879
886
|
quarter,
|
|
880
887
|
limit,
|
|
@@ -12,7 +12,18 @@ export interface ListReviewsRequest {
|
|
|
12
12
|
reviewerUserId?: string;
|
|
13
13
|
/** Search steps by their own name and their launch's name. Every word must appear in one of those fields; case and accents are ignored; at most 100 characters and 8 words. See Searching under Errors and pagination. */
|
|
14
14
|
q?: string;
|
|
15
|
-
/**
|
|
15
|
+
/**
|
|
16
|
+
* A fiscal period, as the app's period picker and its URL name them:
|
|
17
|
+
* a quarter (`2026-Q4`), a whole year (`2027`), `upcoming` for this
|
|
18
|
+
* quarter and every one after it, or `all`. Repeat it for several
|
|
19
|
+
* (`period=2026-Q4&period=2027-Q1`); `upcoming` or `all` among them
|
|
20
|
+
* wins over the rest. Narrows by due date in the workspace's fiscal
|
|
21
|
+
* years. With `upcoming` it keeps those with no date yet, as the
|
|
22
|
+
* app's lists do. Left out, with no `year`, every period. Wins over
|
|
23
|
+
* `year` and `quarter`; anything else is a `422 validation_error`.
|
|
24
|
+
*/
|
|
25
|
+
period?: string | string[];
|
|
26
|
+
/** One fiscal year, as the workspace's fiscal year start names it. Narrows by due date; left out, every year. `period` takes several. */
|
|
16
27
|
year?: number;
|
|
17
28
|
/** A fiscal quarter, 1 to 4, of `year`. Needs `year`; left out, the whole year. */
|
|
18
29
|
quarter?: number;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** Why a nudge was not sent. */
|
|
2
|
+
export declare const NudgeReason: {
|
|
3
|
+
/**
|
|
4
|
+
* The reviewer was nudged on this step within the hour. */
|
|
5
|
+
readonly Throttled: "throttled";
|
|
6
|
+
/**
|
|
7
|
+
* The launch is a draft, so its reviewers hear nothing until it is published. */
|
|
8
|
+
readonly Draft: "draft";
|
|
9
|
+
};
|
|
10
|
+
export type NudgeReason = (typeof NudgeReason)[keyof typeof NudgeReason];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
/** Why a nudge was not sent. */
|
|
3
|
+
export const NudgeReason = {
|
|
4
|
+
/**
|
|
5
|
+
* The reviewer was nudged on this step within the hour. */
|
|
6
|
+
Throttled: "throttled",
|
|
7
|
+
/**
|
|
8
|
+
* The launch is a draft, so its reviewers hear nothing until it is published. */
|
|
9
|
+
Draft: "draft",
|
|
10
|
+
};
|
|
@@ -1,4 +1,14 @@
|
|
|
1
|
+
import type * as Taktoria from "../../../index.mjs";
|
|
1
2
|
export interface NudgeResponse {
|
|
2
|
-
queued: boolean;
|
|
3
3
|
stepId: string;
|
|
4
|
+
/** Whether the reviewer is reminded now, by email and Slack. */
|
|
5
|
+
sent: boolean;
|
|
6
|
+
/** Why not, when `sent` is false; null when it is true. */
|
|
7
|
+
reason?: Taktoria.NudgeReason;
|
|
8
|
+
/** When `throttled`, how many minutes until the reviewer can be nudged again; null otherwise. */
|
|
9
|
+
retryInMinutes?: number;
|
|
10
|
+
/** The step's reviewer, who was reminded or would have been. */
|
|
11
|
+
reviewer: Taktoria.User;
|
|
12
|
+
/** Always true, from before the answer said more. Read `sent`. */
|
|
13
|
+
queued: boolean;
|
|
4
14
|
}
|
|
@@ -2,6 +2,7 @@ export * from "./CreateStepRequest.mjs";
|
|
|
2
2
|
export * from "./DecideStepRequest.mjs";
|
|
3
3
|
export * from "./GeneratedSteps.mjs";
|
|
4
4
|
export * from "./LaunchStep.mjs";
|
|
5
|
+
export * from "./NudgeReason.mjs";
|
|
5
6
|
export * from "./NudgeResponse.mjs";
|
|
6
7
|
export * from "./SetDecisionReasonRequest.mjs";
|
|
7
8
|
export * from "./StepList.mjs";
|
|
@@ -2,6 +2,7 @@ export * from "./CreateStepRequest.mjs";
|
|
|
2
2
|
export * from "./DecideStepRequest.mjs";
|
|
3
3
|
export * from "./GeneratedSteps.mjs";
|
|
4
4
|
export * from "./LaunchStep.mjs";
|
|
5
|
+
export * from "./NudgeReason.mjs";
|
|
5
6
|
export * from "./NudgeResponse.mjs";
|
|
6
7
|
export * from "./SetDecisionReasonRequest.mjs";
|
|
7
8
|
export * from "./StepList.mjs";
|
|
@@ -8,7 +8,7 @@ export declare function newFormData(): Promise<FormDataWrapper>;
|
|
|
8
8
|
export declare class FormDataWrapper {
|
|
9
9
|
private fd;
|
|
10
10
|
setup(): Promise<void>;
|
|
11
|
-
append(key: string, value: unknown): void;
|
|
11
|
+
append(key: string, value: unknown, contentType?: string): void;
|
|
12
12
|
appendFile(key: string, value: Uploadable): Promise<void>;
|
|
13
13
|
getRequest(): FormDataRequest<FormData>;
|
|
14
14
|
}
|
|
@@ -31,7 +31,11 @@ export class FormDataWrapper {
|
|
|
31
31
|
// noop
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
|
-
append(key, value) {
|
|
34
|
+
append(key, value, contentType) {
|
|
35
|
+
if (contentType != null) {
|
|
36
|
+
this.fd.append(key, new Blob([String(value)], { type: contentType }), "");
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
35
39
|
this.fd.append(key, String(value));
|
|
36
40
|
}
|
|
37
41
|
appendFile(key, value) {
|
|
@@ -184,7 +184,9 @@ function validateAndTransformObject({ value, requiredKeys, requiredKeysSet, getP
|
|
|
184
184
|
}
|
|
185
185
|
else {
|
|
186
186
|
transformed[preTransformedKey] = preTransformedItemValue;
|
|
187
|
-
|
|
187
|
+
for (const error of value.errors) {
|
|
188
|
+
errors.push(error);
|
|
189
|
+
}
|
|
188
190
|
}
|
|
189
191
|
}
|
|
190
192
|
else {
|
|
@@ -113,10 +113,14 @@ function validateAndTransformRecord({ value, isKeyNumeric, transformKey, transfo
|
|
|
113
113
|
}
|
|
114
114
|
else {
|
|
115
115
|
if (!transformedKey.ok) {
|
|
116
|
-
|
|
116
|
+
for (const error of transformedKey.errors) {
|
|
117
|
+
errors.push(error);
|
|
118
|
+
}
|
|
117
119
|
}
|
|
118
120
|
if (!transformedValue.ok) {
|
|
119
|
-
|
|
121
|
+
for (const error of transformedValue.errors) {
|
|
122
|
+
errors.push(error);
|
|
123
|
+
}
|
|
120
124
|
}
|
|
121
125
|
}
|
|
122
126
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function encodePathParam(param) {
|
|
1
|
+
export function encodePathParam(param, InvalidPathParameterError) {
|
|
2
2
|
if (param === null) {
|
|
3
3
|
return "null";
|
|
4
4
|
}
|
|
@@ -14,5 +14,11 @@ export function encodePathParam(param) {
|
|
|
14
14
|
param = String(param);
|
|
15
15
|
break;
|
|
16
16
|
}
|
|
17
|
-
|
|
17
|
+
const encoded = encodeURIComponent(param);
|
|
18
|
+
// "." and ".." are dot segments: URL resolution would remove them and send the request to a different path.
|
|
19
|
+
if (encoded === "." || encoded === "..") {
|
|
20
|
+
const message = `Invalid path parameter "${encoded}": "." and ".." are not allowed because they change the request path.`;
|
|
21
|
+
throw InvalidPathParameterError != null ? new InvalidPathParameterError({ message }) : new Error(message);
|
|
22
|
+
}
|
|
23
|
+
return encoded;
|
|
18
24
|
}
|
|
@@ -16,8 +16,22 @@ export class TaktoriaError extends Error {
|
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
get requestId() {
|
|
19
|
-
var _a
|
|
20
|
-
|
|
19
|
+
var _a;
|
|
20
|
+
const headers = (_a = this.rawResponse) === null || _a === void 0 ? void 0 : _a.headers;
|
|
21
|
+
if (headers == null) {
|
|
22
|
+
return undefined;
|
|
23
|
+
}
|
|
24
|
+
const requestId = headers.get("X-Request-Id");
|
|
25
|
+
if (requestId != null) {
|
|
26
|
+
return requestId;
|
|
27
|
+
}
|
|
28
|
+
let fallback;
|
|
29
|
+
headers.forEach((value, name) => {
|
|
30
|
+
if (fallback === undefined && /request[-_]?id$/i.test(name)) {
|
|
31
|
+
fallback = value;
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
return fallback;
|
|
21
35
|
}
|
|
22
36
|
}
|
|
23
37
|
function buildMessage({ message, statusCode, body, }) {
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type * as Taktoria from "../../../../api/index.mjs";
|
|
2
|
+
import * as core from "../../../../core/index.mjs";
|
|
3
|
+
import type * as serializers from "../../../index.mjs";
|
|
4
|
+
export declare const EventCalendarInvite: core.serialization.ObjectSchema<serializers.EventCalendarInvite.Raw, Taktoria.EventCalendarInvite>;
|
|
5
|
+
export declare namespace EventCalendarInvite {
|
|
6
|
+
interface Raw {
|
|
7
|
+
eventId: string;
|
|
8
|
+
code: string;
|
|
9
|
+
joinUrl: string;
|
|
10
|
+
hasPasscode: boolean;
|
|
11
|
+
startsAt?: string | null;
|
|
12
|
+
endsAt?: string | null;
|
|
13
|
+
timeZone?: string | null;
|
|
14
|
+
inviteText: string;
|
|
15
|
+
googleCalendarUrl?: string | null;
|
|
16
|
+
outlookUrl?: string | null;
|
|
17
|
+
outlookComUrl?: string | null;
|
|
18
|
+
ics?: string | null;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
import * as core from "../../../../core/index.mjs";
|
|
3
|
+
export const EventCalendarInvite = core.serialization.object({
|
|
4
|
+
eventId: core.serialization.string(),
|
|
5
|
+
code: core.serialization.string(),
|
|
6
|
+
joinUrl: core.serialization.string(),
|
|
7
|
+
hasPasscode: core.serialization.boolean(),
|
|
8
|
+
startsAt: core.serialization.date().optional(),
|
|
9
|
+
endsAt: core.serialization.date().optional(),
|
|
10
|
+
timeZone: core.serialization.string().optional(),
|
|
11
|
+
inviteText: core.serialization.string(),
|
|
12
|
+
googleCalendarUrl: core.serialization.string().optional(),
|
|
13
|
+
outlookUrl: core.serialization.string().optional(),
|
|
14
|
+
outlookComUrl: core.serialization.string().optional(),
|
|
15
|
+
ics: core.serialization.string().optional(),
|
|
16
|
+
});
|
|
@@ -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";
|
|
@@ -45,5 +45,7 @@ export * as process from "./process/index.mjs";
|
|
|
45
45
|
export * from "./process/types/index.mjs";
|
|
46
46
|
export * as search from "./search/index.mjs";
|
|
47
47
|
export * from "./search/types/index.mjs";
|
|
48
|
+
export * as slackConnections from "./slackConnections/index.mjs";
|
|
49
|
+
export * from "./slackConnections/types/index.mjs";
|
|
48
50
|
export * as steps from "./steps/index.mjs";
|
|
49
51
|
export * from "./steps/types/index.mjs";
|
|
@@ -45,5 +45,7 @@ export * as process from "./process/index.mjs";
|
|
|
45
45
|
export * from "./process/types/index.mjs";
|
|
46
46
|
export * as search from "./search/index.mjs";
|
|
47
47
|
export * from "./search/types/index.mjs";
|
|
48
|
+
export * as slackConnections from "./slackConnections/index.mjs";
|
|
49
|
+
export * from "./slackConnections/types/index.mjs";
|
|
48
50
|
export * as steps from "./steps/index.mjs";
|
|
49
51
|
export * from "./steps/types/index.mjs";
|
|
@@ -3,5 +3,5 @@ import * as core from "../../../../core/index.mjs";
|
|
|
3
3
|
import type * as serializers from "../../../index.mjs";
|
|
4
4
|
export declare const LaunchActivityVerb: core.serialization.Schema<serializers.LaunchActivityVerb.Raw, Taktoria.LaunchActivityVerb>;
|
|
5
5
|
export declare namespace LaunchActivityVerb {
|
|
6
|
-
type Raw = "created" | "updated" | "published" | "unpublished" | "launched" | "decided" | "reasoned" | "commented" | "posted" | "linked" | "unlinked" | "synced";
|
|
6
|
+
type Raw = "created" | "updated" | "published" | "unpublished" | "launched" | "decided" | "reasoned" | "commented" | "posted" | "linked" | "unlinked" | "synced" | "exported";
|
|
7
7
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type * as Taktoria from "../../../../api/index.mjs";
|
|
2
2
|
import * as core from "../../../../core/index.mjs";
|
|
3
3
|
import type * as serializers from "../../../index.mjs";
|
|
4
|
+
import { KeyResultMetric } from "./KeyResultMetric.mjs";
|
|
4
5
|
import { OkrPriority } from "./OkrPriority.mjs";
|
|
5
6
|
export declare const KeyResult: core.serialization.ObjectSchema<serializers.KeyResult.Raw, Taktoria.KeyResult>;
|
|
6
7
|
export declare namespace KeyResult {
|
|
@@ -15,6 +16,8 @@ export declare namespace KeyResult {
|
|
|
15
16
|
sortOrder: number;
|
|
16
17
|
ownerUserIds: string[];
|
|
17
18
|
ownerTeamIds: string[];
|
|
19
|
+
lastCheckInAt?: string | null;
|
|
20
|
+
metric?: KeyResultMetric.Raw | null;
|
|
18
21
|
createdAt: string;
|
|
19
22
|
updatedAt: string;
|
|
20
23
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
import * as core from "../../../../core/index.mjs";
|
|
3
|
+
import { KeyResultMetric } from "./KeyResultMetric.mjs";
|
|
3
4
|
import { OkrPriority } from "./OkrPriority.mjs";
|
|
4
5
|
export const KeyResult = core.serialization.object({
|
|
5
6
|
id: core.serialization.string(),
|
|
@@ -12,6 +13,8 @@ export const KeyResult = core.serialization.object({
|
|
|
12
13
|
sortOrder: core.serialization.number(),
|
|
13
14
|
ownerUserIds: core.serialization.list(core.serialization.string()),
|
|
14
15
|
ownerTeamIds: core.serialization.list(core.serialization.string()),
|
|
16
|
+
lastCheckInAt: core.serialization.date().optional(),
|
|
17
|
+
metric: KeyResultMetric.optional(),
|
|
15
18
|
createdAt: core.serialization.date(),
|
|
16
19
|
updatedAt: core.serialization.date(),
|
|
17
20
|
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type * as Taktoria from "../../../../api/index.mjs";
|
|
2
|
+
import * as core from "../../../../core/index.mjs";
|
|
3
|
+
import type * as serializers from "../../../index.mjs";
|
|
4
|
+
import { MetricSourceKind } from "./MetricSourceKind.mjs";
|
|
5
|
+
export declare const KeyResultMetric: core.serialization.ObjectSchema<serializers.KeyResultMetric.Raw, Taktoria.KeyResultMetric>;
|
|
6
|
+
export declare namespace KeyResultMetric {
|
|
7
|
+
interface Raw {
|
|
8
|
+
name: string;
|
|
9
|
+
kind: MetricSourceKind.Raw;
|
|
10
|
+
paused: boolean;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
import * as core from "../../../../core/index.mjs";
|
|
3
|
+
import { MetricSourceKind } from "./MetricSourceKind.mjs";
|
|
4
|
+
export const KeyResultMetric = core.serialization.object({
|
|
5
|
+
name: core.serialization.string(),
|
|
6
|
+
kind: MetricSourceKind,
|
|
7
|
+
paused: core.serialization.boolean(),
|
|
8
|
+
});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as Taktoria from "../../../../api/index.mjs";
|
|
2
|
+
import * as core from "../../../../core/index.mjs";
|
|
3
|
+
import type * as serializers from "../../../index.mjs";
|
|
4
|
+
export declare const MetricSourceKind: core.serialization.Schema<serializers.MetricSourceKind.Raw, Taktoria.MetricSourceKind>;
|
|
5
|
+
export declare namespace MetricSourceKind {
|
|
6
|
+
type Raw = "WEBHOOK" | "PULL";
|
|
7
|
+
}
|
|
@@ -19,6 +19,8 @@ export * from "./KeyResultDetail.mjs";
|
|
|
19
19
|
export * from "./KeyResultGrade.mjs";
|
|
20
20
|
export * from "./KeyResultGradeList.mjs";
|
|
21
21
|
export * from "./KeyResultList.mjs";
|
|
22
|
+
export * from "./KeyResultMetric.mjs";
|
|
23
|
+
export * from "./MetricSourceKind.mjs";
|
|
22
24
|
export * from "./Objective.mjs";
|
|
23
25
|
export * from "./ObjectiveDetail.mjs";
|
|
24
26
|
export * from "./ObjectivePage.mjs";
|
|
@@ -19,6 +19,8 @@ export * from "./KeyResultDetail.mjs";
|
|
|
19
19
|
export * from "./KeyResultGrade.mjs";
|
|
20
20
|
export * from "./KeyResultGradeList.mjs";
|
|
21
21
|
export * from "./KeyResultList.mjs";
|
|
22
|
+
export * from "./KeyResultMetric.mjs";
|
|
23
|
+
export * from "./MetricSourceKind.mjs";
|
|
22
24
|
export * from "./Objective.mjs";
|
|
23
25
|
export * from "./ObjectiveDetail.mjs";
|
|
24
26
|
export * from "./ObjectivePage.mjs";
|
|
@@ -14,7 +14,9 @@ export declare namespace Organization {
|
|
|
14
14
|
defaultTimeZone?: string | null;
|
|
15
15
|
holidayMarkets: string[];
|
|
16
16
|
requireGoogleSignIn: boolean;
|
|
17
|
+
slackCommandsWithoutGoogle: boolean;
|
|
17
18
|
googleSignInAvailable: boolean;
|
|
18
19
|
autoGrowSeats: boolean;
|
|
20
|
+
allowCalendarFeeds: boolean;
|
|
19
21
|
}
|
|
20
22
|
}
|
|
@@ -11,6 +11,8 @@ export const Organization = core.serialization.object({
|
|
|
11
11
|
defaultTimeZone: core.serialization.string().optional(),
|
|
12
12
|
holidayMarkets: core.serialization.list(core.serialization.string()),
|
|
13
13
|
requireGoogleSignIn: core.serialization.boolean(),
|
|
14
|
+
slackCommandsWithoutGoogle: core.serialization.boolean(),
|
|
14
15
|
googleSignInAvailable: core.serialization.boolean(),
|
|
15
16
|
autoGrowSeats: core.serialization.boolean(),
|
|
17
|
+
allowCalendarFeeds: core.serialization.boolean(),
|
|
16
18
|
});
|
|
@@ -8,4 +8,6 @@ export const UpdateOrganizationRequest = core.serialization.object({
|
|
|
8
8
|
defaultTimeZone: core.serialization.string().optional(),
|
|
9
9
|
holidayMarkets: core.serialization.list(core.serialization.string()).optional(),
|
|
10
10
|
autoGrowSeats: core.serialization.boolean().optional(),
|
|
11
|
+
allowCalendarFeeds: core.serialization.boolean().optional(),
|
|
12
|
+
slackCommandsWithoutGoogle: core.serialization.boolean().optional(),
|
|
11
13
|
});
|
|
@@ -3,4 +3,5 @@ import * as core from "../../../../core/index.mjs";
|
|
|
3
3
|
export const UpdateNotificationChannels = core.serialization.object({
|
|
4
4
|
email: core.serialization.boolean().optional(),
|
|
5
5
|
slack: core.serialization.boolean().optional(),
|
|
6
|
+
teams: core.serialization.boolean().optional(),
|
|
6
7
|
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./types/index.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./types/index.mjs";
|