@schedulin/sdk 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -44,7 +44,7 @@ export declare class MediaClient {
44
44
  update(request: Schedulin.UpdateMediaRequest, requestOptions?: MediaClient.RequestOptions): core.HttpResponsePromise<Schedulin.Media>;
45
45
  private __update;
46
46
  /**
47
- * List media for the organization with cursor pagination, search, type and tag filters
47
+ * List media for the organization with page pagination, search, type and tag filters
48
48
  *
49
49
  * @param {Schedulin.ListMediaRequest} request
50
50
  * @param {MediaClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -55,7 +55,7 @@ export declare class MediaClient {
55
55
  * @example
56
56
  * await client.media.list()
57
57
  */
58
- list(request?: Schedulin.ListMediaRequest, requestOptions?: MediaClient.RequestOptions): core.HttpResponsePromise<unknown>;
58
+ list(request?: Schedulin.ListMediaRequest, requestOptions?: MediaClient.RequestOptions): core.HttpResponsePromise<Schedulin.ListMediaResponse>;
59
59
  private __list;
60
60
  /**
61
61
  * Replace the set of tags attached to a media item with the provided tag IDs
@@ -179,7 +179,7 @@ class MediaClient {
179
179
  });
180
180
  }
181
181
  /**
182
- * List media for the organization with cursor pagination, search, type and tag filters
182
+ * List media for the organization with page pagination, search, type and tag filters
183
183
  *
184
184
  * @param {Schedulin.ListMediaRequest} request
185
185
  * @param {MediaClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -196,9 +196,9 @@ class MediaClient {
196
196
  __list() {
197
197
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
198
198
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
199
- const { cursor, limit, q, type: type_, tagIds, tagMode } = request;
199
+ const { page, limit, q, type: type_, tagIds, tagMode } = request;
200
200
  const _queryParams = {
201
- cursor,
201
+ page,
202
202
  limit,
203
203
  q,
204
204
  type: type_ != null ? type_ : undefined,
@@ -4,7 +4,7 @@ import type * as Schedulin from "../../../../index.js";
4
4
  * {}
5
5
  */
6
6
  export interface ListMediaRequest {
7
- cursor?: Schedulin.ListMediaRequestCursor | null;
7
+ page?: number;
8
8
  limit?: number;
9
9
  q?: string;
10
10
  type?: Schedulin.ListMediaRequestType;
@@ -0,0 +1,7 @@
1
+ import type * as Schedulin from "../../../index.js";
2
+ export interface ListMediaResponse {
3
+ items: Schedulin.Media[];
4
+ page: number;
5
+ total: number;
6
+ totalPages: number;
7
+ }
@@ -1,4 +1,4 @@
1
1
  export * from "./CountByTagMediaResponse.js";
2
- export * from "./ListMediaRequestCursor.js";
3
2
  export * from "./ListMediaRequestTagMode.js";
4
3
  export * from "./ListMediaRequestType.js";
4
+ export * from "./ListMediaResponse.js";
@@ -15,6 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./CountByTagMediaResponse.js"), exports);
18
- __exportStar(require("./ListMediaRequestCursor.js"), exports);
19
18
  __exportStar(require("./ListMediaRequestTagMode.js"), exports);
20
19
  __exportStar(require("./ListMediaRequestType.js"), exports);
20
+ __exportStar(require("./ListMediaResponse.js"), exports);
@@ -1,5 +1,5 @@
1
1
  export interface MediaSearch {
2
- cursor?: (MediaSearch.Cursor | null) | undefined;
2
+ page?: number | undefined;
3
3
  limit?: number | undefined;
4
4
  q?: string | undefined;
5
5
  type?: MediaSearch.Type | undefined;
@@ -7,10 +7,6 @@ export interface MediaSearch {
7
7
  tagMode?: MediaSearch.TagMode | undefined;
8
8
  }
9
9
  export declare namespace MediaSearch {
10
- interface Cursor {
11
- id: string;
12
- updatedAt: string;
13
- }
14
10
  const Type: {
15
11
  readonly Image: "image";
16
12
  readonly Video: "video";
@@ -44,7 +44,7 @@ export declare class MediaClient {
44
44
  update(request: Schedulin.UpdateMediaRequest, requestOptions?: MediaClient.RequestOptions): core.HttpResponsePromise<Schedulin.Media>;
45
45
  private __update;
46
46
  /**
47
- * List media for the organization with cursor pagination, search, type and tag filters
47
+ * List media for the organization with page pagination, search, type and tag filters
48
48
  *
49
49
  * @param {Schedulin.ListMediaRequest} request
50
50
  * @param {MediaClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -55,7 +55,7 @@ export declare class MediaClient {
55
55
  * @example
56
56
  * await client.media.list()
57
57
  */
58
- list(request?: Schedulin.ListMediaRequest, requestOptions?: MediaClient.RequestOptions): core.HttpResponsePromise<unknown>;
58
+ list(request?: Schedulin.ListMediaRequest, requestOptions?: MediaClient.RequestOptions): core.HttpResponsePromise<Schedulin.ListMediaResponse>;
59
59
  private __list;
60
60
  /**
61
61
  * Replace the set of tags attached to a media item with the provided tag IDs
@@ -143,7 +143,7 @@ export class MediaClient {
143
143
  });
144
144
  }
145
145
  /**
146
- * List media for the organization with cursor pagination, search, type and tag filters
146
+ * List media for the organization with page pagination, search, type and tag filters
147
147
  *
148
148
  * @param {Schedulin.ListMediaRequest} request
149
149
  * @param {MediaClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -160,9 +160,9 @@ export class MediaClient {
160
160
  __list() {
161
161
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
162
162
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
163
- const { cursor, limit, q, type: type_, tagIds, tagMode } = request;
163
+ const { page, limit, q, type: type_, tagIds, tagMode } = request;
164
164
  const _queryParams = {
165
- cursor,
165
+ page,
166
166
  limit,
167
167
  q,
168
168
  type: type_ != null ? type_ : undefined,
@@ -4,7 +4,7 @@ import type * as Schedulin from "../../../../index.mjs";
4
4
  * {}
5
5
  */
6
6
  export interface ListMediaRequest {
7
- cursor?: Schedulin.ListMediaRequestCursor | null;
7
+ page?: number;
8
8
  limit?: number;
9
9
  q?: string;
10
10
  type?: Schedulin.ListMediaRequestType;
@@ -0,0 +1,7 @@
1
+ import type * as Schedulin from "../../../index.mjs";
2
+ export interface ListMediaResponse {
3
+ items: Schedulin.Media[];
4
+ page: number;
5
+ total: number;
6
+ totalPages: number;
7
+ }
@@ -1,4 +1,4 @@
1
1
  export * from "./CountByTagMediaResponse.mjs";
2
- export * from "./ListMediaRequestCursor.mjs";
3
2
  export * from "./ListMediaRequestTagMode.mjs";
4
3
  export * from "./ListMediaRequestType.mjs";
4
+ export * from "./ListMediaResponse.mjs";
@@ -1,4 +1,4 @@
1
1
  export * from "./CountByTagMediaResponse.mjs";
2
- export * from "./ListMediaRequestCursor.mjs";
3
2
  export * from "./ListMediaRequestTagMode.mjs";
4
3
  export * from "./ListMediaRequestType.mjs";
4
+ export * from "./ListMediaResponse.mjs";
@@ -1,5 +1,5 @@
1
1
  export interface MediaSearch {
2
- cursor?: (MediaSearch.Cursor | null) | undefined;
2
+ page?: number | undefined;
3
3
  limit?: number | undefined;
4
4
  q?: string | undefined;
5
5
  type?: MediaSearch.Type | undefined;
@@ -7,10 +7,6 @@ export interface MediaSearch {
7
7
  tagMode?: MediaSearch.TagMode | undefined;
8
8
  }
9
9
  export declare namespace MediaSearch {
10
- interface Cursor {
11
- id: string;
12
- updatedAt: string;
13
- }
14
10
  const Type: {
15
11
  readonly Image: "image";
16
12
  readonly Video: "video";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@schedulin/sdk",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Official TypeScript SDK for the Schedulin API (schedulin.app)",
5
5
  "keywords": [
6
6
  "schedulin",
@@ -1,4 +0,0 @@
1
- export interface ListMediaRequestCursor {
2
- id: string;
3
- updatedAt: string;
4
- }
@@ -1,4 +0,0 @@
1
- export interface ListMediaRequestCursor {
2
- id: string;
3
- updatedAt: string;
4
- }