Skip to content

Commit

Permalink
Version 12.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bodrovis committed May 14, 2024
1 parent 06c9b7c commit 0210889
Show file tree
Hide file tree
Showing 20 changed files with 68 additions and 14 deletions.
3 changes: 3 additions & 0 deletions dist/collections/base_collection.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import type { HttpMethod } from "../types/http_method.js";
import { ApiRequest } from "../http_client/base.js";
import { ApiError } from "../models/api_error.js";
import { PaginatedResult } from "../models/paginated_result.js";
import { CursorPaginatedResult } from "../models/cursor_paginated_result.js";
import { Keyable } from "../interfaces/keyable.js";
import { ClientData } from "../interfaces/client_data.js";
import { BulkResult } from "../interfaces/bulk_result.js";
Expand All @@ -18,6 +19,7 @@ export declare abstract class BaseCollection {
protected static secondaryElementClass: any;
constructor(clientData: ClientData);
protected doList(req_params: Keyable): Promise<any>;
protected doListCursor(req_params: Keyable): Promise<any>;
protected doGet(id: string | number, req_params?: Keyable): Promise<any>;
protected doDelete(id: string | number, req_params?: Keyable): Promise<any>;
protected doCreate(body: Keyable | null, req_params?: Keyable, resolveFn?: (json: Keyable, _headers: Headers, secondary?: boolean) => any): Promise<any>;
Expand All @@ -27,6 +29,7 @@ export declare abstract class BaseCollection {
protected populateObjectFromJson(json: Keyable, _headers: Headers, secondary?: boolean): any;
protected populateArrayFromJsonBulk(json: Keyable, headers: Headers): BulkResult | this[];
protected populateArrayFromJson(json: Keyable, headers: Headers): PaginatedResult | Keyable | this[];
protected populateArrayFromJsonCursor(json: Keyable, headers: Headers): CursorPaginatedResult | Keyable | this[];
protected populateApiErrorFromJson(json: any): ApiError;
protected returnBareJSON(json: Keyable | Array<Keyable>): Keyable | Array<Keyable>;
protected handleReject(data: any): ApiError;
Expand Down
16 changes: 16 additions & 0 deletions dist/collections/base_collection.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/collections/base_collection.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/collections/keys.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { BaseCollection } from "./base_collection.js";
import { Key } from "../models/key.js";
import { PaginatedResult } from "../interfaces/paginated_result.js";
import { CursorPaginatedResult } from "../interfaces/cursor_paginated_result.js";
import { BulkResult } from "../interfaces/bulk_result.js";
import type { ProjectOnly } from "../types/common_get_params.js";
import type { CreateKeyParams, UpdateKeyData, BulkUpdateKeyParams, KeyDeleted, KeysBulkDeleted, KeyParamsWithPagination, GetKeyParams } from "../types/keys.js";
Expand All @@ -9,7 +9,7 @@ export declare class Keys extends BaseCollection {
protected static rootElementNameSingular: string;
protected static prefixURI: string;
protected static elementClass: typeof Key;
list(request_params: KeyParamsWithPagination): Promise<PaginatedResult<Key>>;
list(request_params: KeyParamsWithPagination): Promise<CursorPaginatedResult<Key>>;
create(key_params: CreateKeyParams, request_params: ProjectOnly): Promise<BulkResult<Key>>;
get(key_id: string | number, request_params: GetKeyParams): Promise<Key>;
update(key_id: string | number, key_params: UpdateKeyData, request_params: ProjectOnly): Promise<Key>;
Expand Down
2 changes: 1 addition & 1 deletion dist/collections/keys.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/collections/keys.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/collections/translations.d.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { BaseCollection } from "./base_collection.js";
import { Translation } from "../models/translation.js";
import { PaginatedResult } from "../interfaces/paginated_result.js";
import { CursorPaginatedResult } from "../interfaces/cursor_paginated_result.js";
import type { ProjectOnly } from "../types/common_get_params.js";
import type { UpdateTranslationParams, ListTranslationParams, GetTranslationParams } from "../types/translations.js";
export declare class Translations extends BaseCollection {
protected static rootElementName: string;
protected static rootElementNameSingular: string;
protected static prefixURI: string;
protected static elementClass: typeof Translation;
list(request_params: ListTranslationParams): Promise<PaginatedResult<Translation>>;
list(request_params: ListTranslationParams): Promise<CursorPaginatedResult<Translation>>;
get(translation_id: string | number, request_params: GetTranslationParams): Promise<Translation>;
update(translation_id: string | number, translation_params: UpdateTranslationParams, request_params: ProjectOnly): Promise<Translation>;
}
2 changes: 1 addition & 1 deletion dist/collections/translations.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/collections/translations.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 0210889

Please sign in to comment.