@n3oltd/umbraco-cropper-client 9.0.0-beta.12 → 9.0.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.
- package/README.md +1 -1
- package/build/esm/index.d.ts +45 -0
- package/build/esm/index.d.ts.map +1 -0
- package/build/esm/index.js +169 -0
- package/build/esm/index.js.map +1 -0
- package/build/index.d.ts +45 -0
- package/build/index.d.ts.map +1 -0
- package/build/index.js +169 -0
- package/build/index.js.map +1 -0
- package/build/index.min.js +1 -0
- package/build/index.min.js.map +1 -0
- package/esm/index.d.ts +44 -218
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +168 -234
- package/esm/index.js.map +1 -1
- package/package.json +39 -40
- package/src/index.ts +53 -289
- package/dist/esm/index.d.ts +0 -219
- package/dist/esm/index.d.ts.map +0 -1
- package/dist/esm/index.js +0 -235
- package/dist/esm/index.js.map +0 -1
- package/dist/index.d.ts +0 -219
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -235
- package/dist/index.js.map +0 -1
- package/dist/index.min.js +0 -1
- package/dist/index.min.js.map +0 -1
package/esm/index.d.ts
CHANGED
|
@@ -1,219 +1,45 @@
|
|
|
1
|
-
export declare class
|
|
2
|
-
private http;
|
|
3
|
-
private baseUrl;
|
|
4
|
-
protected jsonParseReviver: ((key: string, value: any) => any) | undefined;
|
|
5
|
-
constructor(baseUrl?: string, http?: {
|
|
6
|
-
fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
7
|
-
});
|
|
8
|
-
|
|
9
|
-
protected
|
|
10
|
-
|
|
11
|
-
protected
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
export interface
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
sponsorship?: SponsorshipAllocationReq | undefined;
|
|
46
|
-
}
|
|
47
|
-
export interface AllocationType extends NamedLookup {
|
|
48
|
-
}
|
|
49
|
-
export interface MoneyReq {
|
|
50
|
-
amount?: number | undefined;
|
|
51
|
-
currency?: Currency | undefined;
|
|
52
|
-
}
|
|
53
|
-
export interface UmbracoContent extends Value {
|
|
54
|
-
content?: PublishedContentModel | undefined;
|
|
55
|
-
}
|
|
56
|
-
export interface LookupContent extends UmbracoContent {
|
|
57
|
-
id?: string | undefined;
|
|
58
|
-
name?: string | undefined;
|
|
59
|
-
}
|
|
60
|
-
export interface Currency extends LookupContent {
|
|
61
|
-
symbol?: string | undefined;
|
|
62
|
-
decimalDigits?: number;
|
|
63
|
-
isBaseCurrency?: boolean;
|
|
64
|
-
}
|
|
65
|
-
export interface PublishedContentWrapped {
|
|
66
|
-
contentType?: IPublishedContentType | undefined;
|
|
67
|
-
key?: string;
|
|
68
|
-
id?: number;
|
|
69
|
-
name?: string | undefined;
|
|
70
|
-
urlSegment?: string | undefined;
|
|
71
|
-
sortOrder?: number;
|
|
72
|
-
level?: number;
|
|
73
|
-
path?: string | undefined;
|
|
74
|
-
templateId?: number | undefined;
|
|
75
|
-
creatorId?: number;
|
|
76
|
-
createDate?: Date;
|
|
77
|
-
writerId?: number;
|
|
78
|
-
updateDate?: Date;
|
|
79
|
-
cultures?: {
|
|
80
|
-
[key: string]: PublishedCultureInfo;
|
|
81
|
-
} | undefined;
|
|
82
|
-
itemType?: PublishedItemType;
|
|
83
|
-
parent?: IPublishedContent | undefined;
|
|
84
|
-
children?: IPublishedContent[] | undefined;
|
|
85
|
-
childrenForAllCultures?: IPublishedContent[] | undefined;
|
|
86
|
-
properties?: IPublishedProperty[] | undefined;
|
|
87
|
-
}
|
|
88
|
-
export interface PublishedContentModel extends PublishedContentWrapped {
|
|
89
|
-
}
|
|
90
|
-
export interface IPublishedContentType {
|
|
91
|
-
key?: string;
|
|
92
|
-
id?: number;
|
|
93
|
-
alias?: string | undefined;
|
|
94
|
-
itemType?: PublishedItemType;
|
|
95
|
-
compositionAliases?: string[] | undefined;
|
|
96
|
-
variations?: ContentVariation;
|
|
97
|
-
isElement?: boolean;
|
|
98
|
-
propertyTypes?: IPublishedPropertyType[] | undefined;
|
|
99
|
-
}
|
|
100
|
-
export declare enum PublishedItemType {
|
|
101
|
-
Unknown = 0,
|
|
102
|
-
Element = 1,
|
|
103
|
-
Content = 2,
|
|
104
|
-
Media = 3,
|
|
105
|
-
Member = 4
|
|
106
|
-
}
|
|
107
|
-
export declare enum ContentVariation {
|
|
108
|
-
Nothing = 0,
|
|
109
|
-
Culture = 1,
|
|
110
|
-
Segment = 2,
|
|
111
|
-
CultureAndSegment = 3
|
|
112
|
-
}
|
|
113
|
-
export interface IPublishedPropertyType {
|
|
114
|
-
contentType?: IPublishedContentType | undefined;
|
|
115
|
-
dataType?: PublishedDataType | undefined;
|
|
116
|
-
alias?: string | undefined;
|
|
117
|
-
editorAlias?: string | undefined;
|
|
118
|
-
isUserProperty?: boolean;
|
|
119
|
-
variations?: ContentVariation;
|
|
120
|
-
cacheLevel?: PropertyCacheLevel;
|
|
121
|
-
modelClrType?: string | undefined;
|
|
122
|
-
clrType?: string | undefined;
|
|
123
|
-
}
|
|
124
|
-
export interface PublishedDataType {
|
|
125
|
-
id?: number;
|
|
126
|
-
editorAlias?: string | undefined;
|
|
127
|
-
configuration?: any | undefined;
|
|
128
|
-
}
|
|
129
|
-
export declare enum PropertyCacheLevel {
|
|
130
|
-
Unknown = 0,
|
|
131
|
-
Element = 1,
|
|
132
|
-
Elements = 2,
|
|
133
|
-
Snapshot = 3,
|
|
134
|
-
None = 4
|
|
135
|
-
}
|
|
136
|
-
export interface PublishedCultureInfo {
|
|
137
|
-
culture?: string | undefined;
|
|
138
|
-
name?: string | undefined;
|
|
139
|
-
urlSegment?: string | undefined;
|
|
140
|
-
date?: Date;
|
|
141
|
-
}
|
|
142
|
-
export interface IPublishedContent {
|
|
143
|
-
id?: number;
|
|
144
|
-
name?: string | undefined;
|
|
145
|
-
urlSegment?: string | undefined;
|
|
146
|
-
sortOrder?: number;
|
|
147
|
-
level?: number;
|
|
148
|
-
path?: string | undefined;
|
|
149
|
-
templateId?: number | undefined;
|
|
150
|
-
creatorId?: number;
|
|
151
|
-
createDate?: Date;
|
|
152
|
-
writerId?: number;
|
|
153
|
-
updateDate?: Date;
|
|
154
|
-
cultures?: {
|
|
155
|
-
[key: string]: PublishedCultureInfo;
|
|
156
|
-
} | undefined;
|
|
157
|
-
itemType?: PublishedItemType;
|
|
158
|
-
parent?: IPublishedContent | undefined;
|
|
159
|
-
children?: IPublishedContent[] | undefined;
|
|
160
|
-
childrenForAllCultures?: IPublishedContent[] | undefined;
|
|
161
|
-
}
|
|
162
|
-
export interface IPublishedProperty {
|
|
163
|
-
propertyType?: IPublishedPropertyType | undefined;
|
|
164
|
-
alias?: string | undefined;
|
|
165
|
-
}
|
|
166
|
-
export interface FundDimensionOption extends LookupContent {
|
|
167
|
-
isUnrestricted?: boolean;
|
|
168
|
-
}
|
|
169
|
-
export interface FundDimension1Option extends FundDimensionOption {
|
|
170
|
-
}
|
|
171
|
-
export interface FundDimension2Option extends FundDimensionOption {
|
|
172
|
-
}
|
|
173
|
-
export interface FundDimension3Option extends FundDimensionOption {
|
|
174
|
-
}
|
|
175
|
-
export interface FundDimension4Option extends FundDimensionOption {
|
|
176
|
-
}
|
|
177
|
-
export interface FundAllocationReq {
|
|
178
|
-
donationItem?: DonationItem | undefined;
|
|
179
|
-
}
|
|
180
|
-
export interface DonationItem extends LookupContent {
|
|
181
|
-
allowSingleDonations?: boolean;
|
|
182
|
-
allowRegularDonations?: boolean;
|
|
183
|
-
free?: boolean;
|
|
184
|
-
price?: number;
|
|
185
|
-
dimension1Options?: FundDimension1Option[] | undefined;
|
|
186
|
-
dimension2Options?: FundDimension2Option[] | undefined;
|
|
187
|
-
dimension3Options?: FundDimension3Option[] | undefined;
|
|
188
|
-
dimension4Options?: FundDimension4Option[] | undefined;
|
|
189
|
-
}
|
|
190
|
-
export interface SponsorshipAllocationReq {
|
|
191
|
-
scheme?: SponsorshipScheme | undefined;
|
|
192
|
-
}
|
|
193
|
-
export interface SponsorshipScheme extends LookupContent {
|
|
194
|
-
allowSingleDonations?: boolean;
|
|
195
|
-
allowRegularDonations?: boolean;
|
|
196
|
-
price?: number;
|
|
197
|
-
dimension1Options?: FundDimension1Option[] | undefined;
|
|
198
|
-
dimension2Options?: FundDimension2Option[] | undefined;
|
|
199
|
-
dimension3Options?: FundDimension3Option[] | undefined;
|
|
200
|
-
dimension4Options?: FundDimension4Option[] | undefined;
|
|
201
|
-
}
|
|
202
|
-
export interface CartSummaryRes {
|
|
203
|
-
itemCount?: number;
|
|
204
|
-
}
|
|
205
|
-
export declare class ApiException extends Error {
|
|
206
|
-
message: string;
|
|
207
|
-
status: number;
|
|
208
|
-
response: string;
|
|
209
|
-
headers: {
|
|
210
|
-
[key: string]: any;
|
|
211
|
-
};
|
|
212
|
-
result: any;
|
|
213
|
-
constructor(message: string, status: number, response: string, headers: {
|
|
214
|
-
[key: string]: any;
|
|
215
|
-
}, result: any);
|
|
216
|
-
protected isApiException: boolean;
|
|
217
|
-
static isApiException(obj: any): obj is ApiException;
|
|
218
|
-
}
|
|
1
|
+
export declare class CropperClient {
|
|
2
|
+
private http;
|
|
3
|
+
private baseUrl;
|
|
4
|
+
protected jsonParseReviver: ((key: string, value: any) => any) | undefined;
|
|
5
|
+
constructor(baseUrl?: string, http?: {
|
|
6
|
+
fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
7
|
+
});
|
|
8
|
+
getMediaById(mediaId: string | null): Promise<ImageMedia>;
|
|
9
|
+
protected processGetMediaById(response: Response): Promise<ImageMedia>;
|
|
10
|
+
upload(minHeight: number | null | undefined, minWidth: number | null | undefined, file: FileParameter | null | undefined): Promise<ImageMedia>;
|
|
11
|
+
protected processUpload(response: Response): Promise<ImageMedia>;
|
|
12
|
+
}
|
|
13
|
+
export interface ImageMedia {
|
|
14
|
+
urlPath?: string | undefined;
|
|
15
|
+
mediaId?: string | undefined;
|
|
16
|
+
filename?: string | undefined;
|
|
17
|
+
height?: number;
|
|
18
|
+
width?: number;
|
|
19
|
+
}
|
|
20
|
+
export interface ProblemDetails {
|
|
21
|
+
type?: string | undefined;
|
|
22
|
+
title?: string | undefined;
|
|
23
|
+
status?: number | undefined;
|
|
24
|
+
detail?: string | undefined;
|
|
25
|
+
instance?: string | undefined;
|
|
26
|
+
}
|
|
27
|
+
export interface FileParameter {
|
|
28
|
+
data: any;
|
|
29
|
+
fileName: string;
|
|
30
|
+
}
|
|
31
|
+
export declare class ApiException extends Error {
|
|
32
|
+
message: string;
|
|
33
|
+
status: number;
|
|
34
|
+
response: string;
|
|
35
|
+
headers: {
|
|
36
|
+
[key: string]: any;
|
|
37
|
+
};
|
|
38
|
+
result: any;
|
|
39
|
+
constructor(message: string, status: number, response: string, headers: {
|
|
40
|
+
[key: string]: any;
|
|
41
|
+
}, result: any);
|
|
42
|
+
protected isApiException: boolean;
|
|
43
|
+
static isApiException(obj: any): obj is ApiException;
|
|
44
|
+
}
|
|
219
45
|
//# sourceMappingURL=index.d.ts.map
|
package/esm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AASA,qBAAa,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AASA,qBAAa,aAAa;IACtB,OAAO,CAAC,IAAI,CAAqE;IACjF,OAAO,CAAC,OAAO,CAAS;IACxB,SAAS,CAAC,gBAAgB,EAAE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