@ichos/sdk 1.0.8 → 1.0.10
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/Client.d.ts +0 -3
- package/dist/Client.d.ts.map +1 -1
- package/dist/Client.js +0 -5
- package/dist/Client.js.map +1 -1
- package/dist/api/errors/ForbiddenError.d.ts +1 -1
- package/dist/api/errors/ForbiddenError.d.ts.map +1 -1
- package/dist/api/errors/ForbiddenError.js.map +1 -1
- package/dist/api/errors/TooManyRequestsError.d.ts +7 -0
- package/dist/api/errors/TooManyRequestsError.d.ts.map +1 -0
- package/dist/api/errors/TooManyRequestsError.js +18 -0
- package/dist/api/errors/TooManyRequestsError.js.map +1 -0
- package/dist/api/errors/index.d.ts +1 -0
- package/dist/api/errors/index.d.ts.map +1 -1
- package/dist/api/errors/index.js +1 -0
- package/dist/api/errors/index.js.map +1 -1
- package/dist/api/resources/ads/client/Client.d.ts +12 -0
- package/dist/api/resources/ads/client/Client.d.ts.map +1 -1
- package/dist/api/resources/ads/client/Client.js +36 -0
- package/dist/api/resources/ads/client/Client.js.map +1 -1
- package/dist/api/resources/audio/client/Client.d.ts +8 -1
- package/dist/api/resources/audio/client/Client.d.ts.map +1 -1
- package/dist/api/resources/audio/client/Client.js +22 -1
- package/dist/api/resources/audio/client/Client.js.map +1 -1
- package/dist/api/resources/episodes/client/Client.d.ts +14 -19
- package/dist/api/resources/episodes/client/Client.d.ts.map +1 -1
- package/dist/api/resources/episodes/client/Client.js +38 -60
- package/dist/api/resources/episodes/client/Client.js.map +1 -1
- package/dist/api/resources/episodes/client/requests/EpisodeCreate.d.ts +0 -10
- package/dist/api/resources/episodes/client/requests/EpisodeCreate.d.ts.map +1 -1
- package/dist/api/resources/episodes/client/requests/EpisodeCreate.js +0 -6
- package/dist/api/resources/episodes/client/requests/EpisodeCreate.js.map +1 -1
- package/dist/api/resources/episodes/client/requests/EpisodeUpdate.d.ts +1 -11
- package/dist/api/resources/episodes/client/requests/EpisodeUpdate.d.ts.map +1 -1
- package/dist/api/resources/episodes/client/requests/EpisodeUpdate.js +0 -6
- package/dist/api/resources/episodes/client/requests/EpisodeUpdate.js.map +1 -1
- package/dist/api/resources/episodes/client/requests/index.d.ts +0 -1
- package/dist/api/resources/episodes/client/requests/index.d.ts.map +1 -1
- package/dist/api/resources/index.d.ts +0 -2
- package/dist/api/resources/index.d.ts.map +1 -1
- package/dist/api/resources/index.js +0 -2
- package/dist/api/resources/index.js.map +1 -1
- package/dist/api/resources/organizations/client/Client.d.ts +3 -0
- package/dist/api/resources/organizations/client/Client.d.ts.map +1 -1
- package/dist/api/resources/organizations/client/Client.js +9 -0
- package/dist/api/resources/organizations/client/Client.js.map +1 -1
- package/dist/api/resources/podcasts/client/Client.d.ts +34 -19
- package/dist/api/resources/podcasts/client/Client.d.ts.map +1 -1
- package/dist/api/resources/podcasts/client/Client.js +100 -59
- package/dist/api/resources/podcasts/client/Client.js.map +1 -1
- package/dist/api/resources/podcasts/client/requests/GetAverageMonthlyListenersRequest.d.ts.map +1 -0
- package/dist/api/resources/podcasts/client/requests/GetAverageMonthlyListenersRequest.js.map +1 -0
- package/dist/api/resources/podcasts/client/requests/PodcastCreate.d.ts +1 -0
- package/dist/api/resources/podcasts/client/requests/PodcastCreate.d.ts.map +1 -1
- package/dist/api/resources/podcasts/client/requests/PodcastCreate.js.map +1 -1
- package/dist/api/resources/podcasts/client/requests/PodcastUpdate.d.ts +1 -0
- package/dist/api/resources/podcasts/client/requests/PodcastUpdate.d.ts.map +1 -1
- package/dist/api/resources/podcasts/client/requests/PodcastUpdate.js.map +1 -1
- package/dist/api/resources/podcasts/client/requests/index.d.ts +1 -1
- package/dist/api/resources/podcasts/client/requests/index.d.ts.map +1 -1
- package/dist/api/resources/segments/client/Client.js.map +1 -1
- package/dist/api/resources/users/client/Client.d.ts +5 -0
- package/dist/api/resources/users/client/Client.d.ts.map +1 -1
- package/dist/api/resources/users/client/Client.js +15 -0
- package/dist/api/resources/users/client/Client.js.map +1 -1
- package/dist/api/resources/webhooks/client/Client.d.ts +4 -0
- package/dist/api/resources/webhooks/client/Client.d.ts.map +1 -1
- package/dist/api/resources/webhooks/client/Client.js +12 -0
- package/dist/api/resources/webhooks/client/Client.js.map +1 -1
- package/dist/api/types/AudioUploadResponse.d.ts +3 -3
- package/dist/api/types/CoverUploadResponse.d.ts +2 -1
- package/dist/api/types/CoverUploadResponse.d.ts.map +1 -1
- package/dist/api/types/CoverUploadResponse.js.map +1 -1
- package/dist/api/types/Episode.d.ts +7 -0
- package/dist/api/types/Episode.d.ts.map +1 -1
- package/dist/api/types/Episode.js +5 -0
- package/dist/api/types/Episode.js.map +1 -1
- package/dist/api/types/EpisodeCreateResponse.d.ts +1 -1
- package/dist/api/types/EpisodeCreateResponse.d.ts.map +1 -1
- package/dist/api/types/{EpisodeCreatedResponseData.d.ts → EpisodeCreateResponseData.d.ts} +12 -5
- package/dist/api/types/EpisodeCreateResponseData.d.ts.map +1 -0
- package/dist/api/types/EpisodeCreateResponseData.js +21 -0
- package/dist/api/types/EpisodeCreateResponseData.js.map +1 -0
- package/dist/api/types/ForbiddenErrorBody.d.ts +6 -0
- package/dist/api/types/ForbiddenErrorBody.d.ts.map +1 -0
- package/dist/api/types/{StringOrNullResponse.js → ForbiddenErrorBody.js} +1 -1
- package/dist/api/types/ForbiddenErrorBody.js.map +1 -0
- package/dist/api/types/ForbiddenErrorResponse.d.ts +7 -0
- package/dist/api/types/ForbiddenErrorResponse.d.ts.map +1 -0
- package/dist/api/{resources/episodes/client/requests/GetEpisodeCoverRequest.js → types/ForbiddenErrorResponse.js} +1 -1
- package/dist/api/types/ForbiddenErrorResponse.js.map +1 -0
- package/dist/api/types/InternalServerErrorBody.d.ts +0 -3
- package/dist/api/types/InternalServerErrorBody.d.ts.map +1 -1
- package/dist/api/types/NotFoundErrorBody.d.ts +0 -3
- package/dist/api/types/NotFoundErrorBody.d.ts.map +1 -1
- package/dist/api/types/Podcast.d.ts +9 -0
- package/dist/api/types/Podcast.d.ts.map +1 -1
- package/dist/api/types/Podcast.js +6 -0
- package/dist/api/types/Podcast.js.map +1 -1
- package/dist/api/types/PodcastCreateResponse.d.ts +7 -0
- package/dist/api/types/PodcastCreateResponse.d.ts.map +1 -0
- package/dist/api/types/{RetrieveCoverResponse.js → PodcastCreateResponse.js} +1 -1
- package/dist/api/types/PodcastCreateResponse.js.map +1 -0
- package/dist/api/types/PodcastCreateResponseData.d.ts +79 -0
- package/dist/api/types/PodcastCreateResponseData.d.ts.map +1 -0
- package/dist/api/types/PodcastCreateResponseData.js +22 -0
- package/dist/api/types/PodcastCreateResponseData.js.map +1 -0
- package/dist/api/types/TooManyRequestsErrorBody.d.ts +7 -0
- package/dist/api/types/TooManyRequestsErrorBody.d.ts.map +1 -0
- package/dist/api/{resources/podcasts/client/requests/GetPodcastCoverRequest.js → types/TooManyRequestsErrorBody.js} +1 -1
- package/dist/api/types/TooManyRequestsErrorBody.js.map +1 -0
- package/dist/api/types/TooManyRequestsErrorResponse.d.ts +7 -0
- package/dist/api/types/TooManyRequestsErrorResponse.d.ts.map +1 -0
- package/dist/api/types/TooManyRequestsErrorResponse.js +3 -0
- package/dist/api/types/TooManyRequestsErrorResponse.js.map +1 -0
- package/dist/api/types/UnauthorizedErrorBody.d.ts +0 -3
- package/dist/api/types/UnauthorizedErrorBody.d.ts.map +1 -1
- package/dist/api/types/ValidationError.d.ts +8 -0
- package/dist/api/types/ValidationError.d.ts.map +1 -0
- package/dist/api/types/{UnauthenticatedError.js → ValidationError.js} +1 -1
- package/dist/api/types/ValidationError.js.map +1 -0
- package/dist/api/types/ValidationErrorResponse.d.ts +1 -1
- package/dist/api/types/ValidationErrorResponse.d.ts.map +1 -1
- package/dist/api/types/ValidationIssue.d.ts +1 -0
- package/dist/api/types/ValidationIssue.d.ts.map +1 -1
- package/dist/api/types/ValidationIssue.js +1 -0
- package/dist/api/types/ValidationIssue.js.map +1 -1
- package/dist/api/types/index.d.ts +8 -5
- package/dist/api/types/index.d.ts.map +1 -1
- package/dist/api/types/index.js +8 -5
- package/dist/api/types/index.js.map +1 -1
- package/package.json +1 -1
- package/src/Client.ts +0 -6
- package/src/api/errors/ForbiddenError.ts +1 -1
- package/src/api/errors/TooManyRequestsError.ts +22 -0
- package/src/api/errors/index.ts +1 -0
- package/src/api/resources/ads/client/Client.ts +84 -12
- package/src/api/resources/audio/client/Client.ts +43 -1
- package/src/api/resources/episodes/client/Client.ts +86 -107
- package/src/api/resources/episodes/client/requests/EpisodeCreate.ts +0 -10
- package/src/api/resources/episodes/client/requests/EpisodeUpdate.ts +1 -11
- package/src/api/resources/episodes/client/requests/index.ts +0 -1
- package/src/api/resources/index.ts +0 -2
- package/src/api/resources/organizations/client/Client.ts +21 -3
- package/src/api/resources/podcasts/client/Client.ts +190 -110
- package/src/api/resources/podcasts/client/requests/PodcastCreate.ts +1 -0
- package/src/api/resources/podcasts/client/requests/PodcastUpdate.ts +1 -0
- package/src/api/resources/podcasts/client/requests/index.ts +1 -1
- package/src/api/resources/segments/client/Client.ts +6 -6
- package/src/api/resources/users/client/Client.ts +35 -5
- package/src/api/resources/webhooks/client/Client.ts +28 -4
- package/src/api/types/AudioUploadResponse.ts +3 -3
- package/src/api/types/CoverUploadResponse.ts +2 -1
- package/src/api/types/Episode.ts +7 -0
- package/src/api/types/EpisodeCreateResponse.ts +1 -1
- package/src/api/types/{EpisodeCreatedResponseData.ts → EpisodeCreateResponseData.ts} +11 -4
- package/src/api/types/{UnauthenticatedError.ts → ForbiddenErrorBody.ts} +1 -4
- package/src/api/types/{UnauthenticatedErrorResponse.ts → ForbiddenErrorResponse.ts} +2 -2
- package/src/api/types/InternalServerErrorBody.ts +0 -3
- package/src/api/types/NotFoundErrorBody.ts +0 -3
- package/src/api/types/Podcast.ts +9 -0
- package/src/api/types/{StringOrNullResponse.ts → PodcastCreateResponse.ts} +2 -2
- package/src/api/types/PodcastCreateResponseData.ts +82 -0
- package/src/api/types/TooManyRequestsErrorBody.ts +8 -0
- package/src/api/types/TooManyRequestsErrorResponse.ts +9 -0
- package/src/api/types/UnauthorizedErrorBody.ts +0 -3
- package/src/api/types/ValidationError.ts +10 -0
- package/src/api/types/ValidationErrorResponse.ts +1 -1
- package/src/api/types/ValidationIssue.ts +1 -0
- package/src/api/types/index.ts +8 -5
- package/dist/api/resources/analytics/client/Client.d.ts +0 -29
- package/dist/api/resources/analytics/client/Client.d.ts.map +0 -1
- package/dist/api/resources/analytics/client/Client.js +0 -69
- package/dist/api/resources/analytics/client/Client.js.map +0 -1
- package/dist/api/resources/analytics/client/index.d.ts +0 -2
- package/dist/api/resources/analytics/client/index.d.ts.map +0 -1
- package/dist/api/resources/analytics/client/index.js +0 -2
- package/dist/api/resources/analytics/client/index.js.map +0 -1
- package/dist/api/resources/analytics/client/requests/GetAverageMonthlyListenersRequest.d.ts.map +0 -1
- package/dist/api/resources/analytics/client/requests/GetAverageMonthlyListenersRequest.js.map +0 -1
- package/dist/api/resources/analytics/client/requests/index.d.ts +0 -2
- package/dist/api/resources/analytics/client/requests/index.d.ts.map +0 -1
- package/dist/api/resources/analytics/client/requests/index.js +0 -2
- package/dist/api/resources/analytics/client/requests/index.js.map +0 -1
- package/dist/api/resources/analytics/index.d.ts +0 -2
- package/dist/api/resources/analytics/index.d.ts.map +0 -1
- package/dist/api/resources/analytics/index.js +0 -2
- package/dist/api/resources/analytics/index.js.map +0 -1
- package/dist/api/resources/episodes/client/requests/GetEpisodeCoverRequest.d.ts +0 -11
- package/dist/api/resources/episodes/client/requests/GetEpisodeCoverRequest.d.ts.map +0 -1
- package/dist/api/resources/episodes/client/requests/GetEpisodeCoverRequest.js.map +0 -1
- package/dist/api/resources/podcasts/client/requests/GetPodcastCoverRequest.d.ts +0 -11
- package/dist/api/resources/podcasts/client/requests/GetPodcastCoverRequest.d.ts.map +0 -1
- package/dist/api/resources/podcasts/client/requests/GetPodcastCoverRequest.js.map +0 -1
- package/dist/api/types/EpisodeCreatedResponseData.d.ts.map +0 -1
- package/dist/api/types/EpisodeCreatedResponseData.js +0 -16
- package/dist/api/types/EpisodeCreatedResponseData.js.map +0 -1
- package/dist/api/types/RetrieveCoverResponse.d.ts +0 -12
- package/dist/api/types/RetrieveCoverResponse.d.ts.map +0 -1
- package/dist/api/types/RetrieveCoverResponse.js.map +0 -1
- package/dist/api/types/StringOrNullResponse.d.ts +0 -7
- package/dist/api/types/StringOrNullResponse.d.ts.map +0 -1
- package/dist/api/types/StringOrNullResponse.js.map +0 -1
- package/dist/api/types/UnauthenticatedError.d.ts +0 -9
- package/dist/api/types/UnauthenticatedError.d.ts.map +0 -1
- package/dist/api/types/UnauthenticatedError.js.map +0 -1
- package/dist/api/types/UnauthenticatedErrorResponse.d.ts +0 -7
- package/dist/api/types/UnauthenticatedErrorResponse.d.ts.map +0 -1
- package/dist/api/types/UnauthenticatedErrorResponse.js +0 -3
- package/dist/api/types/UnauthenticatedErrorResponse.js.map +0 -1
- package/src/api/resources/analytics/client/Client.ts +0 -110
- package/src/api/resources/analytics/client/index.ts +0 -1
- package/src/api/resources/analytics/client/requests/index.ts +0 -1
- package/src/api/resources/analytics/index.ts +0 -1
- package/src/api/resources/episodes/client/requests/GetEpisodeCoverRequest.ts +0 -12
- package/src/api/resources/podcasts/client/requests/GetPodcastCoverRequest.ts +0 -12
- package/src/api/types/RetrieveCoverResponse.ts +0 -15
- /package/dist/api/resources/{analytics → podcasts}/client/requests/GetAverageMonthlyListenersRequest.d.ts +0 -0
- /package/dist/api/resources/{analytics → podcasts}/client/requests/GetAverageMonthlyListenersRequest.js +0 -0
- /package/src/api/resources/{analytics → podcasts}/client/requests/GetAverageMonthlyListenersRequest.ts +0 -0
|
@@ -18,6 +18,7 @@ export class OrganizationsClient {
|
|
|
18
18
|
*
|
|
19
19
|
* @throws {@link Ichos.UnauthorizedError}
|
|
20
20
|
* @throws {@link Ichos.ForbiddenError}
|
|
21
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
21
22
|
* @throws {@link Ichos.InternalServerError}
|
|
22
23
|
*
|
|
23
24
|
* @example
|
|
@@ -54,6 +55,8 @@ export class OrganizationsClient {
|
|
|
54
55
|
throw new Ichos.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
55
56
|
case 403:
|
|
56
57
|
throw new Ichos.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
58
|
+
case 429:
|
|
59
|
+
throw new Ichos.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
57
60
|
case 500:
|
|
58
61
|
throw new Ichos.InternalServerError(_response.error.body, _response.rawResponse);
|
|
59
62
|
default:
|
|
@@ -74,6 +77,7 @@ export class OrganizationsClient {
|
|
|
74
77
|
* @throws {@link Ichos.UnauthorizedError}
|
|
75
78
|
* @throws {@link Ichos.ForbiddenError}
|
|
76
79
|
* @throws {@link Ichos.NotFoundError}
|
|
80
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
77
81
|
* @throws {@link Ichos.InternalServerError}
|
|
78
82
|
*
|
|
79
83
|
* @example
|
|
@@ -109,6 +113,8 @@ export class OrganizationsClient {
|
|
|
109
113
|
throw new Ichos.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
110
114
|
case 404:
|
|
111
115
|
throw new Ichos.NotFoundError(_response.error.body, _response.rawResponse);
|
|
116
|
+
case 429:
|
|
117
|
+
throw new Ichos.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
112
118
|
case 500:
|
|
113
119
|
throw new Ichos.InternalServerError(_response.error.body, _response.rawResponse);
|
|
114
120
|
default:
|
|
@@ -126,6 +132,7 @@ export class OrganizationsClient {
|
|
|
126
132
|
*
|
|
127
133
|
* @throws {@link Ichos.UnauthorizedError}
|
|
128
134
|
* @throws {@link Ichos.ForbiddenError}
|
|
135
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
129
136
|
* @throws {@link Ichos.InternalServerError}
|
|
130
137
|
*
|
|
131
138
|
* @example
|
|
@@ -162,6 +169,8 @@ export class OrganizationsClient {
|
|
|
162
169
|
throw new Ichos.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
163
170
|
case 403:
|
|
164
171
|
throw new Ichos.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
172
|
+
case 429:
|
|
173
|
+
throw new Ichos.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
165
174
|
case 500:
|
|
166
175
|
throw new Ichos.InternalServerError(_response.error.body, _response.rawResponse);
|
|
167
176
|
default:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Client.js","sourceRoot":"","sources":["../../../../../src/api/resources/organizations/client/Client.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAGhE,OAAO,EAAwC,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AACjH,OAAO,EAAE,YAAY,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AACpF,OAAO,KAAK,IAAI,MAAM,2BAA2B,CAAC;AAClD,OAAO,KAAK,YAAY,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAC1F,OAAO,KAAK,MAAM,MAAM,6BAA6B,CAAC;AACtD,OAAO,KAAK,KAAK,MAAM,mBAAmB,CAAC;AAQ3C,MAAM,OAAO,mBAAmB;IACT,QAAQ,CAA+D;IAE1F,YAAY,OAAoC;QAC5C,IAAI,CAAC,QAAQ,GAAG,8BAA8B,CAAC,OAAO,CAAC,CAAC;IAC5D,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"Client.js","sourceRoot":"","sources":["../../../../../src/api/resources/organizations/client/Client.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAGhE,OAAO,EAAwC,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AACjH,OAAO,EAAE,YAAY,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AACpF,OAAO,KAAK,IAAI,MAAM,2BAA2B,CAAC;AAClD,OAAO,KAAK,YAAY,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,wBAAwB,EAAE,MAA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ACzD,SAAS,CAAC,WAAW,CACxB,CAAC;gBACN;oBACI,MAAM,IAAI,MAAM,CAAC,UAAU,CAAC;wBACxB,UAAU,EAAE,SAAS,CAAC,KAAK,CAAC,UAAU;wBACtC,IAAI,EAAE,SAAS,CAAC,KAAK,CAAC,IAAI;wBAC1B,WAAW,EAAE,SAAS,CAAC,WAAW;qBACrC,CAAC,CAAC;YACX,CAAC;QACL,CAAC;QAED,OAAO,wBAAwB,CAC3B,SAAS,CAAC,KAAK,EACf,SAAS,CAAC,WAAW,EACrB,KAAK,EACL,4CAA4C,CAC/C,CAAC;IACN,CAAC;CACJ"}
|
|
@@ -17,6 +17,7 @@ export declare class PodcastsClient {
|
|
|
17
17
|
*
|
|
18
18
|
* @throws {@link Ichos.UnauthorizedError}
|
|
19
19
|
* @throws {@link Ichos.ForbiddenError}
|
|
20
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
20
21
|
* @throws {@link Ichos.InternalServerError}
|
|
21
22
|
*
|
|
22
23
|
* @example
|
|
@@ -33,6 +34,7 @@ export declare class PodcastsClient {
|
|
|
33
34
|
* @throws {@link Ichos.UnauthorizedError}
|
|
34
35
|
* @throws {@link Ichos.ForbiddenError}
|
|
35
36
|
* @throws {@link Ichos.NotFoundError}
|
|
37
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
36
38
|
* @throws {@link Ichos.InternalServerError}
|
|
37
39
|
*
|
|
38
40
|
* @example
|
|
@@ -41,7 +43,7 @@ export declare class PodcastsClient {
|
|
|
41
43
|
* explicit: false
|
|
42
44
|
* })
|
|
43
45
|
*/
|
|
44
|
-
createPodcast(request: Ichos.PodcastCreate, requestOptions?: PodcastsClient.RequestOptions): core.HttpResponsePromise<Ichos.
|
|
46
|
+
createPodcast(request: Ichos.PodcastCreate, requestOptions?: PodcastsClient.RequestOptions): core.HttpResponsePromise<Ichos.PodcastCreateResponse>;
|
|
45
47
|
private __createPodcast;
|
|
46
48
|
/**
|
|
47
49
|
* Search podcasts in the authenticated organization.
|
|
@@ -51,6 +53,7 @@ export declare class PodcastsClient {
|
|
|
51
53
|
*
|
|
52
54
|
* @throws {@link Ichos.UnauthorizedError}
|
|
53
55
|
* @throws {@link Ichos.ForbiddenError}
|
|
56
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
54
57
|
* @throws {@link Ichos.InternalServerError}
|
|
55
58
|
*
|
|
56
59
|
* @example
|
|
@@ -71,6 +74,7 @@ export declare class PodcastsClient {
|
|
|
71
74
|
* @throws {@link Ichos.UnauthorizedError}
|
|
72
75
|
* @throws {@link Ichos.ForbiddenError}
|
|
73
76
|
* @throws {@link Ichos.NotFoundError}
|
|
77
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
74
78
|
* @throws {@link Ichos.InternalServerError}
|
|
75
79
|
*
|
|
76
80
|
* @example
|
|
@@ -89,6 +93,7 @@ export declare class PodcastsClient {
|
|
|
89
93
|
* @throws {@link Ichos.UnauthorizedError}
|
|
90
94
|
* @throws {@link Ichos.ForbiddenError}
|
|
91
95
|
* @throws {@link Ichos.NotFoundError}
|
|
96
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
92
97
|
* @throws {@link Ichos.InternalServerError}
|
|
93
98
|
*
|
|
94
99
|
* @example
|
|
@@ -107,6 +112,7 @@ export declare class PodcastsClient {
|
|
|
107
112
|
* @throws {@link Ichos.UnauthorizedError}
|
|
108
113
|
* @throws {@link Ichos.ForbiddenError}
|
|
109
114
|
* @throws {@link Ichos.NotFoundError}
|
|
115
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
110
116
|
* @throws {@link Ichos.InternalServerError}
|
|
111
117
|
*
|
|
112
118
|
* @example
|
|
@@ -117,24 +123,6 @@ export declare class PodcastsClient {
|
|
|
117
123
|
*/
|
|
118
124
|
pullPodcastCoverFromUrl(request: Ichos.PullPodcastCoverFromUrlRequest, requestOptions?: PodcastsClient.RequestOptions): core.HttpResponsePromise<Ichos.NullResponse>;
|
|
119
125
|
private __pullPodcastCoverFromUrl;
|
|
120
|
-
/**
|
|
121
|
-
* Retrieve the current cover image URL for a podcast.
|
|
122
|
-
*
|
|
123
|
-
* @param {Ichos.GetPodcastCoverRequest} request
|
|
124
|
-
* @param {PodcastsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
125
|
-
*
|
|
126
|
-
* @throws {@link Ichos.UnauthorizedError}
|
|
127
|
-
* @throws {@link Ichos.ForbiddenError}
|
|
128
|
-
* @throws {@link Ichos.NotFoundError}
|
|
129
|
-
* @throws {@link Ichos.InternalServerError}
|
|
130
|
-
*
|
|
131
|
-
* @example
|
|
132
|
-
* await client.podcasts.getPodcastCover({
|
|
133
|
-
* podcastId: "podcastId"
|
|
134
|
-
* })
|
|
135
|
-
*/
|
|
136
|
-
getPodcastCover(request: Ichos.GetPodcastCoverRequest, requestOptions?: PodcastsClient.RequestOptions): core.HttpResponsePromise<Ichos.StringOrNullResponse>;
|
|
137
|
-
private __getPodcastCover;
|
|
138
126
|
/**
|
|
139
127
|
* Retrieve a single podcast by ID.
|
|
140
128
|
*
|
|
@@ -144,6 +132,7 @@ export declare class PodcastsClient {
|
|
|
144
132
|
* @throws {@link Ichos.UnauthorizedError}
|
|
145
133
|
* @throws {@link Ichos.ForbiddenError}
|
|
146
134
|
* @throws {@link Ichos.NotFoundError}
|
|
135
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
147
136
|
* @throws {@link Ichos.InternalServerError}
|
|
148
137
|
*
|
|
149
138
|
* @example
|
|
@@ -162,6 +151,7 @@ export declare class PodcastsClient {
|
|
|
162
151
|
* @throws {@link Ichos.UnauthorizedError}
|
|
163
152
|
* @throws {@link Ichos.ForbiddenError}
|
|
164
153
|
* @throws {@link Ichos.NotFoundError}
|
|
154
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
165
155
|
* @throws {@link Ichos.InternalServerError}
|
|
166
156
|
*
|
|
167
157
|
* @example
|
|
@@ -180,6 +170,7 @@ export declare class PodcastsClient {
|
|
|
180
170
|
* @throws {@link Ichos.UnauthorizedError}
|
|
181
171
|
* @throws {@link Ichos.ForbiddenError}
|
|
182
172
|
* @throws {@link Ichos.NotFoundError}
|
|
173
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
183
174
|
* @throws {@link Ichos.InternalServerError}
|
|
184
175
|
*
|
|
185
176
|
* @example
|
|
@@ -199,6 +190,7 @@ export declare class PodcastsClient {
|
|
|
199
190
|
* @throws {@link Ichos.UnauthorizedError}
|
|
200
191
|
* @throws {@link Ichos.ForbiddenError}
|
|
201
192
|
* @throws {@link Ichos.NotFoundError}
|
|
193
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
202
194
|
* @throws {@link Ichos.InternalServerError}
|
|
203
195
|
*
|
|
204
196
|
* @example
|
|
@@ -217,6 +209,7 @@ export declare class PodcastsClient {
|
|
|
217
209
|
* @throws {@link Ichos.UnauthorizedError}
|
|
218
210
|
* @throws {@link Ichos.ForbiddenError}
|
|
219
211
|
* @throws {@link Ichos.NotFoundError}
|
|
212
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
220
213
|
* @throws {@link Ichos.InternalServerError}
|
|
221
214
|
*
|
|
222
215
|
* @example
|
|
@@ -235,6 +228,7 @@ export declare class PodcastsClient {
|
|
|
235
228
|
* @throws {@link Ichos.UnauthorizedError}
|
|
236
229
|
* @throws {@link Ichos.ForbiddenError}
|
|
237
230
|
* @throws {@link Ichos.NotFoundError}
|
|
231
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
238
232
|
* @throws {@link Ichos.InternalServerError}
|
|
239
233
|
*
|
|
240
234
|
* @example
|
|
@@ -253,6 +247,7 @@ export declare class PodcastsClient {
|
|
|
253
247
|
* @throws {@link Ichos.UnauthorizedError}
|
|
254
248
|
* @throws {@link Ichos.ForbiddenError}
|
|
255
249
|
* @throws {@link Ichos.NotFoundError}
|
|
250
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
256
251
|
* @throws {@link Ichos.InternalServerError}
|
|
257
252
|
*
|
|
258
253
|
* @example
|
|
@@ -262,5 +257,25 @@ export declare class PodcastsClient {
|
|
|
262
257
|
*/
|
|
263
258
|
getPodcastListenersReport(request: Ichos.GetPodcastListenersReportRequest, requestOptions?: PodcastsClient.RequestOptions): core.HttpResponsePromise<Ichos.ListenersReport>;
|
|
264
259
|
private __getPodcastListenersReport;
|
|
260
|
+
/**
|
|
261
|
+
* Get the average monthly listeners for a podcast, calculated from the unique listeners in the report.
|
|
262
|
+
* If the report spans less than 30 days, or only contains data for a single month,
|
|
263
|
+
* this will return the total unique listeners in the report.
|
|
264
|
+
*
|
|
265
|
+
* @param {Ichos.GetAverageMonthlyListenersRequest} request
|
|
266
|
+
* @param {PodcastsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
267
|
+
*
|
|
268
|
+
* @throws {@link Ichos.UnauthorizedError}
|
|
269
|
+
* @throws {@link Ichos.ForbiddenError}
|
|
270
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
271
|
+
* @throws {@link Ichos.InternalServerError}
|
|
272
|
+
*
|
|
273
|
+
* @example
|
|
274
|
+
* await client.podcasts.getAverageMonthlyListeners({
|
|
275
|
+
* podcastId: "podcastId"
|
|
276
|
+
* })
|
|
277
|
+
*/
|
|
278
|
+
getAverageMonthlyListeners(request: Ichos.GetAverageMonthlyListenersRequest, requestOptions?: PodcastsClient.RequestOptions): core.HttpResponsePromise<Ichos.MonthlyListenersResponse>;
|
|
279
|
+
private __getAverageMonthlyListeners;
|
|
265
280
|
}
|
|
266
281
|
//# sourceMappingURL=Client.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Client.d.ts","sourceRoot":"","sources":["../../../../../src/api/resources/podcasts/client/Client.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACvF,OAAO,EAAE,KAAK,+BAA+B,EAAkC,MAAM,2BAA2B,CAAC;AAEjH,OAAO,KAAK,IAAI,M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}
|
|
@@ -18,6 +18,7 @@ export class PodcastsClient {
|
|
|
18
18
|
*
|
|
19
19
|
* @throws {@link Ichos.UnauthorizedError}
|
|
20
20
|
* @throws {@link Ichos.ForbiddenError}
|
|
21
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
21
22
|
* @throws {@link Ichos.InternalServerError}
|
|
22
23
|
*
|
|
23
24
|
* @example
|
|
@@ -51,6 +52,8 @@ export class PodcastsClient {
|
|
|
51
52
|
throw new Ichos.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
52
53
|
case 403:
|
|
53
54
|
throw new Ichos.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
55
|
+
case 429:
|
|
56
|
+
throw new Ichos.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
54
57
|
case 500:
|
|
55
58
|
throw new Ichos.InternalServerError(_response.error.body, _response.rawResponse);
|
|
56
59
|
default:
|
|
@@ -72,6 +75,7 @@ export class PodcastsClient {
|
|
|
72
75
|
* @throws {@link Ichos.UnauthorizedError}
|
|
73
76
|
* @throws {@link Ichos.ForbiddenError}
|
|
74
77
|
* @throws {@link Ichos.NotFoundError}
|
|
78
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
75
79
|
* @throws {@link Ichos.InternalServerError}
|
|
76
80
|
*
|
|
77
81
|
* @example
|
|
@@ -113,6 +117,8 @@ export class PodcastsClient {
|
|
|
113
117
|
throw new Ichos.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
114
118
|
case 404:
|
|
115
119
|
throw new Ichos.NotFoundError(_response.error.body, _response.rawResponse);
|
|
120
|
+
case 429:
|
|
121
|
+
throw new Ichos.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
116
122
|
case 500:
|
|
117
123
|
throw new Ichos.InternalServerError(_response.error.body, _response.rawResponse);
|
|
118
124
|
default:
|
|
@@ -133,6 +139,7 @@ export class PodcastsClient {
|
|
|
133
139
|
*
|
|
134
140
|
* @throws {@link Ichos.UnauthorizedError}
|
|
135
141
|
* @throws {@link Ichos.ForbiddenError}
|
|
142
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
136
143
|
* @throws {@link Ichos.InternalServerError}
|
|
137
144
|
*
|
|
138
145
|
* @example
|
|
@@ -190,6 +197,8 @@ export class PodcastsClient {
|
|
|
190
197
|
throw new Ichos.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
191
198
|
case 403:
|
|
192
199
|
throw new Ichos.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
200
|
+
case 429:
|
|
201
|
+
throw new Ichos.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
193
202
|
case 500:
|
|
194
203
|
throw new Ichos.InternalServerError(_response.error.body, _response.rawResponse);
|
|
195
204
|
default:
|
|
@@ -211,6 +220,7 @@ export class PodcastsClient {
|
|
|
211
220
|
* @throws {@link Ichos.UnauthorizedError}
|
|
212
221
|
* @throws {@link Ichos.ForbiddenError}
|
|
213
222
|
* @throws {@link Ichos.NotFoundError}
|
|
223
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
214
224
|
* @throws {@link Ichos.InternalServerError}
|
|
215
225
|
*
|
|
216
226
|
* @example
|
|
@@ -251,6 +261,8 @@ export class PodcastsClient {
|
|
|
251
261
|
throw new Ichos.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
252
262
|
case 404:
|
|
253
263
|
throw new Ichos.NotFoundError(_response.error.body, _response.rawResponse);
|
|
264
|
+
case 429:
|
|
265
|
+
throw new Ichos.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
254
266
|
case 500:
|
|
255
267
|
throw new Ichos.InternalServerError(_response.error.body, _response.rawResponse);
|
|
256
268
|
default:
|
|
@@ -272,6 +284,7 @@ export class PodcastsClient {
|
|
|
272
284
|
* @throws {@link Ichos.UnauthorizedError}
|
|
273
285
|
* @throws {@link Ichos.ForbiddenError}
|
|
274
286
|
* @throws {@link Ichos.NotFoundError}
|
|
287
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
275
288
|
* @throws {@link Ichos.InternalServerError}
|
|
276
289
|
*
|
|
277
290
|
* @example
|
|
@@ -310,6 +323,8 @@ export class PodcastsClient {
|
|
|
310
323
|
throw new Ichos.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
311
324
|
case 404:
|
|
312
325
|
throw new Ichos.NotFoundError(_response.error.body, _response.rawResponse);
|
|
326
|
+
case 429:
|
|
327
|
+
throw new Ichos.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
313
328
|
case 500:
|
|
314
329
|
throw new Ichos.InternalServerError(_response.error.body, _response.rawResponse);
|
|
315
330
|
default:
|
|
@@ -331,6 +346,7 @@ export class PodcastsClient {
|
|
|
331
346
|
* @throws {@link Ichos.UnauthorizedError}
|
|
332
347
|
* @throws {@link Ichos.ForbiddenError}
|
|
333
348
|
* @throws {@link Ichos.NotFoundError}
|
|
349
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
334
350
|
* @throws {@link Ichos.InternalServerError}
|
|
335
351
|
*
|
|
336
352
|
* @example
|
|
@@ -373,6 +389,8 @@ export class PodcastsClient {
|
|
|
373
389
|
throw new Ichos.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
374
390
|
case 404:
|
|
375
391
|
throw new Ichos.NotFoundError(_response.error.body, _response.rawResponse);
|
|
392
|
+
case 429:
|
|
393
|
+
throw new Ichos.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
376
394
|
case 500:
|
|
377
395
|
throw new Ichos.InternalServerError(_response.error.body, _response.rawResponse);
|
|
378
396
|
default:
|
|
@@ -385,65 +403,6 @@ export class PodcastsClient {
|
|
|
385
403
|
}
|
|
386
404
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/v1/podcasts/{podcastId}/cover/pull");
|
|
387
405
|
}
|
|
388
|
-
/**
|
|
389
|
-
* Retrieve the current cover image URL for a podcast.
|
|
390
|
-
*
|
|
391
|
-
* @param {Ichos.GetPodcastCoverRequest} request
|
|
392
|
-
* @param {PodcastsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
393
|
-
*
|
|
394
|
-
* @throws {@link Ichos.UnauthorizedError}
|
|
395
|
-
* @throws {@link Ichos.ForbiddenError}
|
|
396
|
-
* @throws {@link Ichos.NotFoundError}
|
|
397
|
-
* @throws {@link Ichos.InternalServerError}
|
|
398
|
-
*
|
|
399
|
-
* @example
|
|
400
|
-
* await client.podcasts.getPodcastCover({
|
|
401
|
-
* podcastId: "podcastId"
|
|
402
|
-
* })
|
|
403
|
-
*/
|
|
404
|
-
getPodcastCover(request, requestOptions) {
|
|
405
|
-
return core.HttpResponsePromise.fromPromise(this.__getPodcastCover(request, requestOptions));
|
|
406
|
-
}
|
|
407
|
-
async __getPodcastCover(request, requestOptions) {
|
|
408
|
-
const { podcastId } = request;
|
|
409
|
-
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
410
|
-
const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, mergeOnlyDefinedHeaders({ "x-virtual-user": requestOptions?.virtualUser ?? this._options?.virtualUser }), requestOptions?.headers);
|
|
411
|
-
const _response = await core.fetcher({
|
|
412
|
-
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
413
|
-
(await core.Supplier.get(this._options.environment)) ??
|
|
414
|
-
environments.IchosEnvironment.Default, `v1/podcasts/${core.url.encodePathParam(podcastId)}/cover`),
|
|
415
|
-
method: "GET",
|
|
416
|
-
headers: _headers,
|
|
417
|
-
queryParameters: requestOptions?.queryParams,
|
|
418
|
-
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
419
|
-
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
420
|
-
abortSignal: requestOptions?.abortSignal,
|
|
421
|
-
fetchFn: this._options?.fetch,
|
|
422
|
-
logging: this._options.logging,
|
|
423
|
-
});
|
|
424
|
-
if (_response.ok) {
|
|
425
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
426
|
-
}
|
|
427
|
-
if (_response.error.reason === "status-code") {
|
|
428
|
-
switch (_response.error.statusCode) {
|
|
429
|
-
case 401:
|
|
430
|
-
throw new Ichos.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
431
|
-
case 403:
|
|
432
|
-
throw new Ichos.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
433
|
-
case 404:
|
|
434
|
-
throw new Ichos.NotFoundError(_response.error.body, _response.rawResponse);
|
|
435
|
-
case 500:
|
|
436
|
-
throw new Ichos.InternalServerError(_response.error.body, _response.rawResponse);
|
|
437
|
-
default:
|
|
438
|
-
throw new errors.IchosError({
|
|
439
|
-
statusCode: _response.error.statusCode,
|
|
440
|
-
body: _response.error.body,
|
|
441
|
-
rawResponse: _response.rawResponse,
|
|
442
|
-
});
|
|
443
|
-
}
|
|
444
|
-
}
|
|
445
|
-
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v1/podcasts/{podcastId}/cover");
|
|
446
|
-
}
|
|
447
406
|
/**
|
|
448
407
|
* Retrieve a single podcast by ID.
|
|
449
408
|
*
|
|
@@ -453,6 +412,7 @@ export class PodcastsClient {
|
|
|
453
412
|
* @throws {@link Ichos.UnauthorizedError}
|
|
454
413
|
* @throws {@link Ichos.ForbiddenError}
|
|
455
414
|
* @throws {@link Ichos.NotFoundError}
|
|
415
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
456
416
|
* @throws {@link Ichos.InternalServerError}
|
|
457
417
|
*
|
|
458
418
|
* @example
|
|
@@ -491,6 +451,8 @@ export class PodcastsClient {
|
|
|
491
451
|
throw new Ichos.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
492
452
|
case 404:
|
|
493
453
|
throw new Ichos.NotFoundError(_response.error.body, _response.rawResponse);
|
|
454
|
+
case 429:
|
|
455
|
+
throw new Ichos.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
494
456
|
case 500:
|
|
495
457
|
throw new Ichos.InternalServerError(_response.error.body, _response.rawResponse);
|
|
496
458
|
default:
|
|
@@ -512,6 +474,7 @@ export class PodcastsClient {
|
|
|
512
474
|
* @throws {@link Ichos.UnauthorizedError}
|
|
513
475
|
* @throws {@link Ichos.ForbiddenError}
|
|
514
476
|
* @throws {@link Ichos.NotFoundError}
|
|
477
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
515
478
|
* @throws {@link Ichos.InternalServerError}
|
|
516
479
|
*
|
|
517
480
|
* @example
|
|
@@ -550,6 +513,8 @@ export class PodcastsClient {
|
|
|
550
513
|
throw new Ichos.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
551
514
|
case 404:
|
|
552
515
|
throw new Ichos.NotFoundError(_response.error.body, _response.rawResponse);
|
|
516
|
+
case 429:
|
|
517
|
+
throw new Ichos.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
553
518
|
case 500:
|
|
554
519
|
throw new Ichos.InternalServerError(_response.error.body, _response.rawResponse);
|
|
555
520
|
default:
|
|
@@ -571,6 +536,7 @@ export class PodcastsClient {
|
|
|
571
536
|
* @throws {@link Ichos.UnauthorizedError}
|
|
572
537
|
* @throws {@link Ichos.ForbiddenError}
|
|
573
538
|
* @throws {@link Ichos.NotFoundError}
|
|
539
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
574
540
|
* @throws {@link Ichos.InternalServerError}
|
|
575
541
|
*
|
|
576
542
|
* @example
|
|
@@ -612,6 +578,8 @@ export class PodcastsClient {
|
|
|
612
578
|
throw new Ichos.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
613
579
|
case 404:
|
|
614
580
|
throw new Ichos.NotFoundError(_response.error.body, _response.rawResponse);
|
|
581
|
+
case 429:
|
|
582
|
+
throw new Ichos.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
615
583
|
case 500:
|
|
616
584
|
throw new Ichos.InternalServerError(_response.error.body, _response.rawResponse);
|
|
617
585
|
default:
|
|
@@ -634,6 +602,7 @@ export class PodcastsClient {
|
|
|
634
602
|
* @throws {@link Ichos.UnauthorizedError}
|
|
635
603
|
* @throws {@link Ichos.ForbiddenError}
|
|
636
604
|
* @throws {@link Ichos.NotFoundError}
|
|
605
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
637
606
|
* @throws {@link Ichos.InternalServerError}
|
|
638
607
|
*
|
|
639
608
|
* @example
|
|
@@ -672,6 +641,8 @@ export class PodcastsClient {
|
|
|
672
641
|
throw new Ichos.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
673
642
|
case 404:
|
|
674
643
|
throw new Ichos.NotFoundError(_response.error.body, _response.rawResponse);
|
|
644
|
+
case 429:
|
|
645
|
+
throw new Ichos.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
675
646
|
case 500:
|
|
676
647
|
throw new Ichos.InternalServerError(_response.error.body, _response.rawResponse);
|
|
677
648
|
default:
|
|
@@ -693,6 +664,7 @@ export class PodcastsClient {
|
|
|
693
664
|
* @throws {@link Ichos.UnauthorizedError}
|
|
694
665
|
* @throws {@link Ichos.ForbiddenError}
|
|
695
666
|
* @throws {@link Ichos.NotFoundError}
|
|
667
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
696
668
|
* @throws {@link Ichos.InternalServerError}
|
|
697
669
|
*
|
|
698
670
|
* @example
|
|
@@ -731,6 +703,8 @@ export class PodcastsClient {
|
|
|
731
703
|
throw new Ichos.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
732
704
|
case 404:
|
|
733
705
|
throw new Ichos.NotFoundError(_response.error.body, _response.rawResponse);
|
|
706
|
+
case 429:
|
|
707
|
+
throw new Ichos.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
734
708
|
case 500:
|
|
735
709
|
throw new Ichos.InternalServerError(_response.error.body, _response.rawResponse);
|
|
736
710
|
default:
|
|
@@ -752,6 +726,7 @@ export class PodcastsClient {
|
|
|
752
726
|
* @throws {@link Ichos.UnauthorizedError}
|
|
753
727
|
* @throws {@link Ichos.ForbiddenError}
|
|
754
728
|
* @throws {@link Ichos.NotFoundError}
|
|
729
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
755
730
|
* @throws {@link Ichos.InternalServerError}
|
|
756
731
|
*
|
|
757
732
|
* @example
|
|
@@ -790,6 +765,8 @@ export class PodcastsClient {
|
|
|
790
765
|
throw new Ichos.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
791
766
|
case 404:
|
|
792
767
|
throw new Ichos.NotFoundError(_response.error.body, _response.rawResponse);
|
|
768
|
+
case 429:
|
|
769
|
+
throw new Ichos.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
793
770
|
case 500:
|
|
794
771
|
throw new Ichos.InternalServerError(_response.error.body, _response.rawResponse);
|
|
795
772
|
default:
|
|
@@ -811,6 +788,7 @@ export class PodcastsClient {
|
|
|
811
788
|
* @throws {@link Ichos.UnauthorizedError}
|
|
812
789
|
* @throws {@link Ichos.ForbiddenError}
|
|
813
790
|
* @throws {@link Ichos.NotFoundError}
|
|
791
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
814
792
|
* @throws {@link Ichos.InternalServerError}
|
|
815
793
|
*
|
|
816
794
|
* @example
|
|
@@ -849,6 +827,8 @@ export class PodcastsClient {
|
|
|
849
827
|
throw new Ichos.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
850
828
|
case 404:
|
|
851
829
|
throw new Ichos.NotFoundError(_response.error.body, _response.rawResponse);
|
|
830
|
+
case 429:
|
|
831
|
+
throw new Ichos.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
852
832
|
case 500:
|
|
853
833
|
throw new Ichos.InternalServerError(_response.error.body, _response.rawResponse);
|
|
854
834
|
default:
|
|
@@ -861,5 +841,66 @@ export class PodcastsClient {
|
|
|
861
841
|
}
|
|
862
842
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v1/podcasts/{podcastId}/analytics/listens");
|
|
863
843
|
}
|
|
844
|
+
/**
|
|
845
|
+
* Get the average monthly listeners for a podcast, calculated from the unique listeners in the report.
|
|
846
|
+
* If the report spans less than 30 days, or only contains data for a single month,
|
|
847
|
+
* this will return the total unique listeners in the report.
|
|
848
|
+
*
|
|
849
|
+
* @param {Ichos.GetAverageMonthlyListenersRequest} request
|
|
850
|
+
* @param {PodcastsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
851
|
+
*
|
|
852
|
+
* @throws {@link Ichos.UnauthorizedError}
|
|
853
|
+
* @throws {@link Ichos.ForbiddenError}
|
|
854
|
+
* @throws {@link Ichos.TooManyRequestsError}
|
|
855
|
+
* @throws {@link Ichos.InternalServerError}
|
|
856
|
+
*
|
|
857
|
+
* @example
|
|
858
|
+
* await client.podcasts.getAverageMonthlyListeners({
|
|
859
|
+
* podcastId: "podcastId"
|
|
860
|
+
* })
|
|
861
|
+
*/
|
|
862
|
+
getAverageMonthlyListeners(request, requestOptions) {
|
|
863
|
+
return core.HttpResponsePromise.fromPromise(this.__getAverageMonthlyListeners(request, requestOptions));
|
|
864
|
+
}
|
|
865
|
+
async __getAverageMonthlyListeners(request, requestOptions) {
|
|
866
|
+
const { podcastId } = request;
|
|
867
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
868
|
+
const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, mergeOnlyDefinedHeaders({ "x-virtual-user": requestOptions?.virtualUser ?? this._options?.virtualUser }), requestOptions?.headers);
|
|
869
|
+
const _response = await core.fetcher({
|
|
870
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
871
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
872
|
+
environments.IchosEnvironment.Default, `v1/analytics/${core.url.encodePathParam(podcastId)}/monthly-listeners`),
|
|
873
|
+
method: "GET",
|
|
874
|
+
headers: _headers,
|
|
875
|
+
queryParameters: requestOptions?.queryParams,
|
|
876
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
877
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
878
|
+
abortSignal: requestOptions?.abortSignal,
|
|
879
|
+
fetchFn: this._options?.fetch,
|
|
880
|
+
logging: this._options.logging,
|
|
881
|
+
});
|
|
882
|
+
if (_response.ok) {
|
|
883
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
884
|
+
}
|
|
885
|
+
if (_response.error.reason === "status-code") {
|
|
886
|
+
switch (_response.error.statusCode) {
|
|
887
|
+
case 401:
|
|
888
|
+
throw new Ichos.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
889
|
+
case 403:
|
|
890
|
+
throw new Ichos.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
891
|
+
case 429:
|
|
892
|
+
throw new Ichos.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
893
|
+
case 500:
|
|
894
|
+
throw new Ichos.InternalServerError(_response.error.body, _response.rawResponse);
|
|
895
|
+
default:
|
|
896
|
+
throw new errors.IchosError({
|
|
897
|
+
statusCode: _response.error.statusCode,
|
|
898
|
+
body: _response.error.body,
|
|
899
|
+
rawResponse: _response.rawResponse,
|
|
900
|
+
});
|
|
901
|
+
}
|
|
902
|
+
}
|
|
903
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v1/analytics/{podcastId}/monthly-listeners");
|
|
904
|
+
}
|
|
864
905
|
}
|
|
865
906
|
//# sourceMappingURL=Client.js.map
|