@schedulin/sdk 0.1.0 → 0.1.1

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.
@@ -44,17 +44,17 @@ export declare class PostsClient {
44
44
  /**
45
45
  * Returns counts of posts for the Queue, Drafts, Approvals, and Sent tabs
46
46
  *
47
- * @param {Schedulin.V0PostCountByTabRequest} request
47
+ * @param {Schedulin.CountByTabPostsRequest} request
48
48
  * @param {PostsClient.RequestOptions} requestOptions - Request-specific configuration.
49
49
  *
50
50
  * @throws {@link Schedulin.UnauthorizedError}
51
51
  * @throws {@link Schedulin.InternalServerError}
52
52
  *
53
53
  * @example
54
- * await client.posts.v0PostCountByTab()
54
+ * await client.posts.countByTab()
55
55
  */
56
- v0PostCountByTab(request?: Schedulin.V0PostCountByTabRequest, requestOptions?: PostsClient.RequestOptions): core.HttpResponsePromise<unknown>;
57
- private __v0PostCountByTab;
56
+ countByTab(request?: Schedulin.CountByTabPostsRequest, requestOptions?: PostsClient.RequestOptions): core.HttpResponsePromise<unknown>;
57
+ private __countByTab;
58
58
  /**
59
59
  * Retrieve a single post by its ID with all relations
60
60
  *
@@ -192,19 +192,19 @@ class PostsClient {
192
192
  /**
193
193
  * Returns counts of posts for the Queue, Drafts, Approvals, and Sent tabs
194
194
  *
195
- * @param {Schedulin.V0PostCountByTabRequest} request
195
+ * @param {Schedulin.CountByTabPostsRequest} request
196
196
  * @param {PostsClient.RequestOptions} requestOptions - Request-specific configuration.
197
197
  *
198
198
  * @throws {@link Schedulin.UnauthorizedError}
199
199
  * @throws {@link Schedulin.InternalServerError}
200
200
  *
201
201
  * @example
202
- * await client.posts.v0PostCountByTab()
202
+ * await client.posts.countByTab()
203
203
  */
204
- v0PostCountByTab(request = {}, requestOptions) {
205
- return core.HttpResponsePromise.fromPromise(this.__v0PostCountByTab(request, requestOptions));
204
+ countByTab(request = {}, requestOptions) {
205
+ return core.HttpResponsePromise.fromPromise(this.__countByTab(request, requestOptions));
206
206
  }
207
- __v0PostCountByTab() {
207
+ __countByTab() {
208
208
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
209
209
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
210
210
  const { socialAccountIds } = request;
@@ -2,6 +2,6 @@
2
2
  * @example
3
3
  * {}
4
4
  */
5
- export interface V0PostCountByTabRequest {
5
+ export interface CountByTabPostsRequest {
6
6
  socialAccountIds?: string | string[];
7
7
  }
@@ -1,5 +1,6 @@
1
1
  export type { AnalyticsSeriesPostsRequest } from "./AnalyticsSeriesPostsRequest.js";
2
2
  export type { AnalyticsSummaryPostsRequest } from "./AnalyticsSummaryPostsRequest.js";
3
+ export type { CountByTabPostsRequest } from "./CountByTabPostsRequest.js";
3
4
  export type { DeletePostsRequest } from "./DeletePostsRequest.js";
4
5
  export type { GetJobStatusPostsRequest } from "./GetJobStatusPostsRequest.js";
5
6
  export type { ListPostsRequest } from "./ListPostsRequest.js";
@@ -8,4 +9,3 @@ export type { PublishDraftPostsRequest } from "./PublishDraftPostsRequest.js";
8
9
  export type { RetrievePostsRequest } from "./RetrievePostsRequest.js";
9
10
  export { UpdatePostsRequest } from "./UpdatePostsRequest.js";
10
11
  export type { UpdateTagsPostsRequest } from "./UpdateTagsPostsRequest.js";
11
- export type { V0PostCountByTabRequest } from "./V0PostCountByTabRequest.js";
@@ -52,9 +52,7 @@ export declare class TagsClient {
52
52
  *
53
53
  * @example
54
54
  * await client.tags.update({
55
- * id: "id",
56
- * name: "name",
57
- * color: "color"
55
+ * id: "id"
58
56
  * })
59
57
  */
60
58
  update(request: Schedulin.UpdateTagsRequest, requestOptions?: TagsClient.RequestOptions): core.HttpResponsePromise<Schedulin.Tag>;
@@ -194,9 +194,7 @@ class TagsClient {
194
194
  *
195
195
  * @example
196
196
  * await client.tags.update({
197
- * id: "id",
198
- * name: "name",
199
- * color: "color"
197
+ * id: "id"
200
198
  * })
201
199
  */
202
200
  update(request, requestOptions) {
@@ -1,13 +1,11 @@
1
1
  /**
2
2
  * @example
3
3
  * {
4
- * id: "id",
5
- * name: "name",
6
- * color: "color"
4
+ * id: "id"
7
5
  * }
8
6
  */
9
7
  export interface UpdateTagsRequest {
10
8
  id: string;
11
- name: string;
12
- color: string;
9
+ name?: string;
10
+ color?: string;
13
11
  }
@@ -44,17 +44,17 @@ export declare class PostsClient {
44
44
  /**
45
45
  * Returns counts of posts for the Queue, Drafts, Approvals, and Sent tabs
46
46
  *
47
- * @param {Schedulin.V0PostCountByTabRequest} request
47
+ * @param {Schedulin.CountByTabPostsRequest} request
48
48
  * @param {PostsClient.RequestOptions} requestOptions - Request-specific configuration.
49
49
  *
50
50
  * @throws {@link Schedulin.UnauthorizedError}
51
51
  * @throws {@link Schedulin.InternalServerError}
52
52
  *
53
53
  * @example
54
- * await client.posts.v0PostCountByTab()
54
+ * await client.posts.countByTab()
55
55
  */
56
- v0PostCountByTab(request?: Schedulin.V0PostCountByTabRequest, requestOptions?: PostsClient.RequestOptions): core.HttpResponsePromise<unknown>;
57
- private __v0PostCountByTab;
56
+ countByTab(request?: Schedulin.CountByTabPostsRequest, requestOptions?: PostsClient.RequestOptions): core.HttpResponsePromise<unknown>;
57
+ private __countByTab;
58
58
  /**
59
59
  * Retrieve a single post by its ID with all relations
60
60
  *
@@ -156,19 +156,19 @@ export class PostsClient {
156
156
  /**
157
157
  * Returns counts of posts for the Queue, Drafts, Approvals, and Sent tabs
158
158
  *
159
- * @param {Schedulin.V0PostCountByTabRequest} request
159
+ * @param {Schedulin.CountByTabPostsRequest} request
160
160
  * @param {PostsClient.RequestOptions} requestOptions - Request-specific configuration.
161
161
  *
162
162
  * @throws {@link Schedulin.UnauthorizedError}
163
163
  * @throws {@link Schedulin.InternalServerError}
164
164
  *
165
165
  * @example
166
- * await client.posts.v0PostCountByTab()
166
+ * await client.posts.countByTab()
167
167
  */
168
- v0PostCountByTab(request = {}, requestOptions) {
169
- return core.HttpResponsePromise.fromPromise(this.__v0PostCountByTab(request, requestOptions));
168
+ countByTab(request = {}, requestOptions) {
169
+ return core.HttpResponsePromise.fromPromise(this.__countByTab(request, requestOptions));
170
170
  }
171
- __v0PostCountByTab() {
171
+ __countByTab() {
172
172
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
173
173
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
174
174
  const { socialAccountIds } = request;
@@ -2,6 +2,6 @@
2
2
  * @example
3
3
  * {}
4
4
  */
5
- export interface V0PostCountByTabRequest {
5
+ export interface CountByTabPostsRequest {
6
6
  socialAccountIds?: string | string[];
7
7
  }
@@ -1,5 +1,6 @@
1
1
  export type { AnalyticsSeriesPostsRequest } from "./AnalyticsSeriesPostsRequest.mjs";
2
2
  export type { AnalyticsSummaryPostsRequest } from "./AnalyticsSummaryPostsRequest.mjs";
3
+ export type { CountByTabPostsRequest } from "./CountByTabPostsRequest.mjs";
3
4
  export type { DeletePostsRequest } from "./DeletePostsRequest.mjs";
4
5
  export type { GetJobStatusPostsRequest } from "./GetJobStatusPostsRequest.mjs";
5
6
  export type { ListPostsRequest } from "./ListPostsRequest.mjs";
@@ -8,4 +9,3 @@ export type { PublishDraftPostsRequest } from "./PublishDraftPostsRequest.mjs";
8
9
  export type { RetrievePostsRequest } from "./RetrievePostsRequest.mjs";
9
10
  export { UpdatePostsRequest } from "./UpdatePostsRequest.mjs";
10
11
  export type { UpdateTagsPostsRequest } from "./UpdateTagsPostsRequest.mjs";
11
- export type { V0PostCountByTabRequest } from "./V0PostCountByTabRequest.mjs";
@@ -52,9 +52,7 @@ export declare class TagsClient {
52
52
  *
53
53
  * @example
54
54
  * await client.tags.update({
55
- * id: "id",
56
- * name: "name",
57
- * color: "color"
55
+ * id: "id"
58
56
  * })
59
57
  */
60
58
  update(request: Schedulin.UpdateTagsRequest, requestOptions?: TagsClient.RequestOptions): core.HttpResponsePromise<Schedulin.Tag>;
@@ -158,9 +158,7 @@ export class TagsClient {
158
158
  *
159
159
  * @example
160
160
  * await client.tags.update({
161
- * id: "id",
162
- * name: "name",
163
- * color: "color"
161
+ * id: "id"
164
162
  * })
165
163
  */
166
164
  update(request, requestOptions) {
@@ -1,13 +1,11 @@
1
1
  /**
2
2
  * @example
3
3
  * {
4
- * id: "id",
5
- * name: "name",
6
- * color: "color"
4
+ * id: "id"
7
5
  * }
8
6
  */
9
7
  export interface UpdateTagsRequest {
10
8
  id: string;
11
- name: string;
12
- color: string;
9
+ name?: string;
10
+ color?: string;
13
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@schedulin/sdk",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Official TypeScript SDK for the Schedulin API (schedulin.app)",
5
5
  "keywords": [
6
6
  "schedulin",