@lcdp/api-react-rest-client 2.14.3-develop.18775084447 → 2.14.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/invoice/src/apis/SearchInvoiceApi.d.ts +2 -2
- package/invoice/src/apis/SearchInvoiceApi.js +2 -2
- package/invoice/src/models/InvoiceType.d.ts +1 -0
- package/invoice/src/models/InvoiceType.js +1 -0
- package/notification/src/models/NotificationTypeId.d.ts +2 -1
- package/notification/src/models/NotificationTypeId.js +2 -1
- package/package.json +1 -1
- package/rfx/src/apis/index.d.ts +0 -1
- package/rfx/src/apis/index.js +0 -1
- package/rfx/src/models/index.d.ts +0 -1
- package/rfx/src/models/index.js +0 -1
- package/subscription/src/apis/ManageSubscriptionApi.d.ts +56 -0
- package/subscription/src/apis/ManageSubscriptionApi.js +315 -0
- package/subscription/src/apis/ManageSubscriptionPlanApi.d.ts +30 -0
- package/{rfx/src/apis/ManageRffApi.js → subscription/src/apis/ManageSubscriptionPlanApi.js} +39 -21
- package/subscription/src/apis/SearchSubscriptionApi.d.ts +53 -0
- package/subscription/src/apis/SearchSubscriptionApi.js +208 -0
- package/subscription/src/apis/SearchSubscriptionPlanApi.d.ts +49 -0
- package/subscription/src/apis/SearchSubscriptionPlanApi.js +249 -0
- package/subscription/src/apis/SearchSubscriptionPlanFeatureApi.d.ts +26 -0
- package/subscription/src/apis/{SearchSubscriptionsApi.js → SearchSubscriptionPlanFeatureApi.js} +13 -19
- package/subscription/src/apis/index.d.ts +5 -1
- package/subscription/src/apis/index.js +5 -1
- package/subscription/src/models/HttpLink.d.ts +31 -0
- package/subscription/src/models/HttpLink.js +47 -0
- package/subscription/src/models/PaginatedObject.d.ts +32 -0
- package/subscription/src/models/PaginatedObject.js +48 -0
- package/subscription/src/models/PaginatedSubscriptions.d.ts +39 -0
- package/subscription/src/models/PaginatedSubscriptions.js +51 -0
- package/subscription/src/models/PagingMetadata.d.ts +49 -0
- package/subscription/src/models/PagingMetadata.js +55 -0
- package/{chargebee-hook → subscription}/src/models/RestError.d.ts +1 -1
- package/{chargebee-hook → subscription}/src/models/RestError.js +1 -1
- package/subscription/src/models/SubscriberLink.d.ts +37 -0
- package/subscription/src/models/SubscriberLink.js +49 -0
- package/subscription/src/models/Subscription.d.ts +18 -23
- package/subscription/src/models/Subscription.js +19 -29
- package/subscription/src/models/SubscriptionCreationParameters.d.ts +44 -0
- package/subscription/src/models/SubscriptionCreationParameters.js +56 -0
- package/subscription/src/models/SubscriptionPlan.d.ts +69 -0
- package/subscription/src/models/SubscriptionPlan.js +59 -0
- package/subscription/src/models/SubscriptionPlanFeature.d.ts +44 -0
- package/subscription/src/models/SubscriptionPlanFeature.js +50 -0
- package/subscription/src/models/SubscriptionPlanFeatureId.d.ts +26 -0
- package/subscription/src/models/SubscriptionPlanFeatureId.js +49 -0
- package/subscription/src/models/SubscriptionPlanId.d.ts +25 -0
- package/subscription/src/models/SubscriptionPlanId.js +48 -0
- package/subscription/src/models/SubscriptionPlanLink.d.ts +38 -0
- package/subscription/src/models/SubscriptionPlanLink.js +50 -0
- package/subscription/src/models/SubscriptionPlanUpdateParameters.d.ts +62 -0
- package/subscription/src/models/SubscriptionPlanUpdateParameters.js +56 -0
- package/subscription/src/models/SubscriptionUpdateParameters.d.ts +62 -0
- package/subscription/src/models/SubscriptionUpdateParameters.js +57 -0
- package/subscription/src/models/index.d.ts +14 -1
- package/subscription/src/models/index.js +14 -1
- package/third-party/src/models/ThirdPartyLinkCreationParameters.d.ts +2 -5
- package/third-party/src/models/ThirdPartyLinkCreationParameters.js +2 -5
- package/user/src/models/NotificationTypeId.d.ts +2 -1
- package/user/src/models/NotificationTypeId.js +2 -1
- package/user/src/models/OffisanteStatus.d.ts +1 -3
- package/user/src/models/OffisanteStatus.js +2 -4
- package/user/src/models/User.d.ts +0 -8
- package/user/src/models/User.js +0 -2
- package/chargebee-hook/index.d.ts +0 -1
- package/chargebee-hook/index.js +0 -17
- package/chargebee-hook/src/apis/ChargebeeHookApi.d.ts +0 -31
- package/chargebee-hook/src/apis/ChargebeeHookApi.js +0 -134
- package/chargebee-hook/src/apis/index.d.ts +0 -1
- package/chargebee-hook/src/apis/index.js +0 -19
- package/chargebee-hook/src/index.d.ts +0 -3
- package/chargebee-hook/src/index.js +0 -21
- package/chargebee-hook/src/models/HookRequest.d.ts +0 -85
- package/chargebee-hook/src/models/HookRequest.js +0 -67
- package/chargebee-hook/src/models/index.d.ts +0 -2
- package/chargebee-hook/src/models/index.js +0 -20
- package/chargebee-hook/src/runtime.d.ts +0 -190
- package/chargebee-hook/src/runtime.js +0 -598
- package/rfx/src/apis/ManageRffApi.d.ts +0 -29
- package/rfx/src/models/RffCreationParameters.d.ts +0 -37
- package/rfx/src/models/RffCreationParameters.js +0 -51
- package/subscription/src/apis/SearchSubscriptionsApi.d.ts +0 -29
- package/subscription/src/models/SubscriptionStatus.d.ts +0 -39
- package/subscription/src/models/SubscriptionStatus.js +0 -62
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* lcdp-monolith-service
|
|
3
|
-
* This is the REST API of LCDP Chargebee hook
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
* Contact: contact@lecomptoirdespharmacies.fr
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface HookRequest
|
|
16
|
-
*/
|
|
17
|
-
export interface HookRequest {
|
|
18
|
-
/**
|
|
19
|
-
* API version (e.g., v2)
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof HookRequest
|
|
22
|
-
*/
|
|
23
|
-
api_version?: string;
|
|
24
|
-
/**
|
|
25
|
-
* Event type (e.g., subscription_created, customer_updated)
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof HookRequest
|
|
28
|
-
*/
|
|
29
|
-
event_type: string;
|
|
30
|
-
/**
|
|
31
|
-
* Unique event identifier
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof HookRequest
|
|
34
|
-
*/
|
|
35
|
-
id: string;
|
|
36
|
-
/**
|
|
37
|
-
* Object type (e.g., event)
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof HookRequest
|
|
40
|
-
*/
|
|
41
|
-
object?: string;
|
|
42
|
-
/**
|
|
43
|
-
* Event timestamp (epoch seconds)
|
|
44
|
-
* @type {number}
|
|
45
|
-
* @memberof HookRequest
|
|
46
|
-
*/
|
|
47
|
-
occurred_at?: number;
|
|
48
|
-
/**
|
|
49
|
-
* Event source (e.g., admin_console, api)
|
|
50
|
-
* @type {string}
|
|
51
|
-
* @memberof HookRequest
|
|
52
|
-
*/
|
|
53
|
-
source?: string;
|
|
54
|
-
/**
|
|
55
|
-
* User who triggered the event
|
|
56
|
-
* @type {string}
|
|
57
|
-
* @memberof HookRequest
|
|
58
|
-
*/
|
|
59
|
-
user?: string;
|
|
60
|
-
/**
|
|
61
|
-
* Webhook status (e.g., scheduled)
|
|
62
|
-
* @type {string}
|
|
63
|
-
* @memberof HookRequest
|
|
64
|
-
*/
|
|
65
|
-
webhook_status?: string;
|
|
66
|
-
/**
|
|
67
|
-
* Event-specific content containing customer, subscription, etc.
|
|
68
|
-
* @type {object}
|
|
69
|
-
* @memberof HookRequest
|
|
70
|
-
*/
|
|
71
|
-
content?: object;
|
|
72
|
-
/**
|
|
73
|
-
* List of webhooks
|
|
74
|
-
* @type {Array<object>}
|
|
75
|
-
* @memberof HookRequest
|
|
76
|
-
*/
|
|
77
|
-
webhooks?: Array<object>;
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* Check if a given object implements the HookRequest interface.
|
|
81
|
-
*/
|
|
82
|
-
export declare function instanceOfHookRequest(value: object): value is HookRequest;
|
|
83
|
-
export declare function HookRequestFromJSON(json: any): HookRequest;
|
|
84
|
-
export declare function HookRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): HookRequest;
|
|
85
|
-
export declare function HookRequestToJSON(value?: HookRequest | null): any;
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* lcdp-monolith-service
|
|
6
|
-
* This is the REST API of LCDP Chargebee hook
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
* Contact: contact@lecomptoirdespharmacies.fr
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.HookRequestToJSON = exports.HookRequestFromJSONTyped = exports.HookRequestFromJSON = exports.instanceOfHookRequest = void 0;
|
|
17
|
-
/**
|
|
18
|
-
* Check if a given object implements the HookRequest interface.
|
|
19
|
-
*/
|
|
20
|
-
function instanceOfHookRequest(value) {
|
|
21
|
-
if (!('event_type' in value) || value['event_type'] === undefined)
|
|
22
|
-
return false;
|
|
23
|
-
if (!('id' in value) || value['id'] === undefined)
|
|
24
|
-
return false;
|
|
25
|
-
return true;
|
|
26
|
-
}
|
|
27
|
-
exports.instanceOfHookRequest = instanceOfHookRequest;
|
|
28
|
-
function HookRequestFromJSON(json) {
|
|
29
|
-
return HookRequestFromJSONTyped(json, false);
|
|
30
|
-
}
|
|
31
|
-
exports.HookRequestFromJSON = HookRequestFromJSON;
|
|
32
|
-
function HookRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
-
if (json == null) {
|
|
34
|
-
return json;
|
|
35
|
-
}
|
|
36
|
-
return {
|
|
37
|
-
'api_version': json['api_version'],
|
|
38
|
-
'event_type': json['event_type'],
|
|
39
|
-
'id': json['id'],
|
|
40
|
-
'object': json['object'],
|
|
41
|
-
'occurred_at': json['occurred_at'],
|
|
42
|
-
'source': json['source'],
|
|
43
|
-
'user': json['user'],
|
|
44
|
-
'webhook_status': json['webhook_status'],
|
|
45
|
-
'content': json['content'],
|
|
46
|
-
'webhooks': json['webhooks'],
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
exports.HookRequestFromJSONTyped = HookRequestFromJSONTyped;
|
|
50
|
-
function HookRequestToJSON(value) {
|
|
51
|
-
if (value == null) {
|
|
52
|
-
return value;
|
|
53
|
-
}
|
|
54
|
-
return {
|
|
55
|
-
'api_version': value['api_version'],
|
|
56
|
-
'event_type': value['event_type'],
|
|
57
|
-
'id': value['id'],
|
|
58
|
-
'object': value['object'],
|
|
59
|
-
'occurred_at': value['occurred_at'],
|
|
60
|
-
'source': value['source'],
|
|
61
|
-
'user': value['user'],
|
|
62
|
-
'webhook_status': value['webhook_status'],
|
|
63
|
-
'content': value['content'],
|
|
64
|
-
'webhooks': value['webhooks'],
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
exports.HookRequestToJSON = HookRequestToJSON;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
/* tslint:disable */
|
|
18
|
-
/* eslint-disable */
|
|
19
|
-
__exportStar(require("./HookRequest"), exports);
|
|
20
|
-
__exportStar(require("./RestError"), exports);
|
|
@@ -1,190 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* lcdp-monolith-service
|
|
3
|
-
* This is the REST API of LCDP Chargebee hook
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
* Contact: contact@lecomptoirdespharmacies.fr
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
export declare const BASE_PATH = "/api/v1";
|
|
13
|
-
export interface ConfigurationParameters {
|
|
14
|
-
basePath?: string;
|
|
15
|
-
fetchApi?: FetchAPI;
|
|
16
|
-
middleware?: Middleware[];
|
|
17
|
-
queryParamsStringify?: (params: HTTPQuery) => string;
|
|
18
|
-
username?: string;
|
|
19
|
-
password?: string;
|
|
20
|
-
apiKey?: string | Promise<string> | ((name: string) => string | Promise<string>);
|
|
21
|
-
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string | Promise<string>);
|
|
22
|
-
headers?: HTTPHeaders;
|
|
23
|
-
credentials?: RequestCredentials;
|
|
24
|
-
referrerPolicy?: ReferrerPolicy;
|
|
25
|
-
}
|
|
26
|
-
export declare class Configuration {
|
|
27
|
-
private configuration;
|
|
28
|
-
constructor(configuration?: ConfigurationParameters);
|
|
29
|
-
set config(configuration: Configuration);
|
|
30
|
-
get basePath(): string;
|
|
31
|
-
get fetchApi(): FetchAPI | undefined;
|
|
32
|
-
get middleware(): Middleware[];
|
|
33
|
-
get queryParamsStringify(): (params: HTTPQuery) => string;
|
|
34
|
-
get username(): string | undefined;
|
|
35
|
-
get password(): string | undefined;
|
|
36
|
-
get apiKey(): ((name: string) => string | Promise<string>) | undefined;
|
|
37
|
-
get accessToken(): ((name?: string, scopes?: string[]) => string | Promise<string>) | undefined;
|
|
38
|
-
get headers(): HTTPHeaders | undefined;
|
|
39
|
-
get credentials(): RequestCredentials | undefined;
|
|
40
|
-
get referrerPolicy(): ReferrerPolicy | undefined;
|
|
41
|
-
}
|
|
42
|
-
export declare const DefaultConfig: Configuration;
|
|
43
|
-
/**
|
|
44
|
-
* This is the base class for all generated API classes.
|
|
45
|
-
*/
|
|
46
|
-
export declare class BaseAPI {
|
|
47
|
-
protected configuration: Configuration;
|
|
48
|
-
private static readonly jsonRegex;
|
|
49
|
-
private middleware;
|
|
50
|
-
constructor(configuration?: Configuration);
|
|
51
|
-
withMiddleware<T extends BaseAPI>(this: T, ...middlewares: Middleware[]): T;
|
|
52
|
-
withPreMiddleware<T extends BaseAPI>(this: T, ...preMiddlewares: Array<Middleware['pre']>): T;
|
|
53
|
-
withPostMiddleware<T extends BaseAPI>(this: T, ...postMiddlewares: Array<Middleware['post']>): T;
|
|
54
|
-
/**
|
|
55
|
-
* Check if the given MIME is a JSON MIME.
|
|
56
|
-
* JSON MIME examples:
|
|
57
|
-
* application/json
|
|
58
|
-
* application/json; charset=UTF8
|
|
59
|
-
* APPLICATION/JSON
|
|
60
|
-
* application/vnd.company+json
|
|
61
|
-
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
62
|
-
* @return True if the given MIME is JSON, false otherwise.
|
|
63
|
-
*/
|
|
64
|
-
protected isJsonMime(mime: string | null | undefined): boolean;
|
|
65
|
-
protected request(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction): Promise<Response>;
|
|
66
|
-
private createFetchParams;
|
|
67
|
-
private fetchApi;
|
|
68
|
-
/**
|
|
69
|
-
* Create a shallow clone of `this` by constructing a new instance
|
|
70
|
-
* and then shallow cloning data members.
|
|
71
|
-
*/
|
|
72
|
-
private clone;
|
|
73
|
-
}
|
|
74
|
-
export declare class ResponseError extends Error {
|
|
75
|
-
response: Response;
|
|
76
|
-
name: "ResponseError";
|
|
77
|
-
constructor(response: Response, msg?: string);
|
|
78
|
-
}
|
|
79
|
-
export declare class FetchError extends Error {
|
|
80
|
-
cause: Error;
|
|
81
|
-
name: "FetchError";
|
|
82
|
-
constructor(cause: Error, msg?: string);
|
|
83
|
-
}
|
|
84
|
-
export declare class RequiredError extends Error {
|
|
85
|
-
field: string;
|
|
86
|
-
name: "RequiredError";
|
|
87
|
-
constructor(field: string, msg?: string);
|
|
88
|
-
}
|
|
89
|
-
export declare const COLLECTION_FORMATS: {
|
|
90
|
-
csv: string;
|
|
91
|
-
ssv: string;
|
|
92
|
-
tsv: string;
|
|
93
|
-
pipes: string;
|
|
94
|
-
};
|
|
95
|
-
export declare type FetchAPI = WindowOrWorkerGlobalScope['fetch'];
|
|
96
|
-
export declare type Json = any;
|
|
97
|
-
export declare type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD';
|
|
98
|
-
export declare type HTTPHeaders = {
|
|
99
|
-
[key: string]: string;
|
|
100
|
-
};
|
|
101
|
-
export declare type HTTPQuery = {
|
|
102
|
-
[key: string]: string | number | null | boolean | Array<string | number | null | boolean> | Set<string | number | null | boolean> | HTTPQuery;
|
|
103
|
-
};
|
|
104
|
-
export declare type HTTPBody = Json | FormData | URLSearchParams;
|
|
105
|
-
export declare type HTTPRequestInit = {
|
|
106
|
-
headers?: HTTPHeaders;
|
|
107
|
-
method: HTTPMethod;
|
|
108
|
-
credentials?: RequestCredentials;
|
|
109
|
-
body?: HTTPBody;
|
|
110
|
-
};
|
|
111
|
-
export declare type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original';
|
|
112
|
-
export declare type InitOverrideFunction = (requestContext: {
|
|
113
|
-
init: HTTPRequestInit;
|
|
114
|
-
context: RequestOpts;
|
|
115
|
-
}) => Promise<RequestInit>;
|
|
116
|
-
export interface FetchParams {
|
|
117
|
-
url: string;
|
|
118
|
-
init: RequestInit;
|
|
119
|
-
}
|
|
120
|
-
export interface RequestOpts {
|
|
121
|
-
path: string;
|
|
122
|
-
method: HTTPMethod;
|
|
123
|
-
headers: HTTPHeaders;
|
|
124
|
-
query?: HTTPQuery;
|
|
125
|
-
body?: HTTPBody;
|
|
126
|
-
}
|
|
127
|
-
export declare function querystring(params: HTTPQuery, prefix?: string): string;
|
|
128
|
-
export declare function mapValues(data: any, fn: (item: any) => any): {};
|
|
129
|
-
export declare function canConsumeForm(consumes: Consume[]): boolean;
|
|
130
|
-
export declare function toDateISOString(date: Date): string;
|
|
131
|
-
export interface Consume {
|
|
132
|
-
contentType: string;
|
|
133
|
-
}
|
|
134
|
-
export interface RequestContext {
|
|
135
|
-
fetch: FetchAPI;
|
|
136
|
-
url: string;
|
|
137
|
-
init: RequestInit;
|
|
138
|
-
}
|
|
139
|
-
export interface ResponseContext {
|
|
140
|
-
fetch: FetchAPI;
|
|
141
|
-
url: string;
|
|
142
|
-
init: RequestInit;
|
|
143
|
-
response: Response;
|
|
144
|
-
}
|
|
145
|
-
export interface ErrorContext {
|
|
146
|
-
fetch: FetchAPI;
|
|
147
|
-
url: string;
|
|
148
|
-
init: RequestInit;
|
|
149
|
-
error: unknown;
|
|
150
|
-
response?: Response;
|
|
151
|
-
}
|
|
152
|
-
export interface Middleware {
|
|
153
|
-
pre?(context: RequestContext): Promise<FetchParams | void>;
|
|
154
|
-
post?(context: ResponseContext): Promise<Response | void>;
|
|
155
|
-
onError?(context: ErrorContext): Promise<Response | void>;
|
|
156
|
-
}
|
|
157
|
-
export interface ApiResponse<T> {
|
|
158
|
-
raw: Response;
|
|
159
|
-
value(): Promise<T>;
|
|
160
|
-
}
|
|
161
|
-
export interface ResponseTransformer<T> {
|
|
162
|
-
(json: any): T;
|
|
163
|
-
}
|
|
164
|
-
export declare class JSONApiResponse<T> {
|
|
165
|
-
raw: Response;
|
|
166
|
-
private transformer;
|
|
167
|
-
constructor(raw: Response, transformer?: ResponseTransformer<T>);
|
|
168
|
-
value(): Promise<T>;
|
|
169
|
-
}
|
|
170
|
-
export declare class VoidApiResponse {
|
|
171
|
-
raw: Response;
|
|
172
|
-
constructor(raw: Response);
|
|
173
|
-
value(): Promise<void>;
|
|
174
|
-
}
|
|
175
|
-
export interface BlobWithMeta {
|
|
176
|
-
blob: Blob;
|
|
177
|
-
filename: string;
|
|
178
|
-
}
|
|
179
|
-
export declare function instanceOfBlobWithMeta(object: any): object is BlobWithMeta;
|
|
180
|
-
export declare class BlobWithMetaApiResponse {
|
|
181
|
-
raw: Response;
|
|
182
|
-
constructor(raw: Response);
|
|
183
|
-
value(): Promise<BlobWithMeta>;
|
|
184
|
-
private extractFilename;
|
|
185
|
-
}
|
|
186
|
-
export declare class TextApiResponse {
|
|
187
|
-
raw: Response;
|
|
188
|
-
constructor(raw: Response);
|
|
189
|
-
value(): Promise<string>;
|
|
190
|
-
}
|