@degallery/sdk 0.1.0 → 0.2.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.
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1 -0
- package/dist/lib/client.d.ts +36 -0
- package/dist/lib/client.d.ts.map +1 -0
- package/dist/lib/types.d.ts +158 -0
- package/dist/lib/types.d.ts.map +1 -0
- package/package.json +6 -5
package/dist/index.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var i=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var g=(n,e)=>{for(var t in e)i(n,t,{get:e[t],enumerable:!0})},y=(n,e,t,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of d(e))!c.call(n,s)&&s!==t&&i(n,s,{get:()=>e[s],enumerable:!(a=u(e,s))||a.enumerable});return n};var h=n=>y(i({},"__esModule",{value:!0}),n);var m={};g(m,{GalleryClient:()=>o});module.exports=h(m);var o=class{constructor(e){this.options=e}options;assets={complete:e=>this.post("/api/v1/assets",e),list:(e={})=>this.getList("/api/v1/assets",e),retrieve:e=>this.get(`/api/v1/assets/${encodeURIComponent(e)}`),update:(e,t)=>this.patch(`/api/v1/assets/${encodeURIComponent(e)}`,t),uploadImage:e=>this.createUpload(e)};galleries={attachAssets:(e,t)=>this.post(`/api/v1/galleries/${encodeURIComponent(e)}/assets`,{assetIds:t}),create:e=>this.post("/api/v1/galleries",e),link:e=>this.get(`/api/v1/galleries/${encodeURIComponent(e)}/link`),list:(e={})=>this.getList("/api/v1/galleries",e),retrieve:(e,t={})=>this.get(`/api/v1/galleries/${encodeURIComponent(e)}`,{...t,include:t.includeAssets?"assets":void 0,includeAssets:void 0}),update:(e,t)=>this.patch(`/api/v1/galleries/${encodeURIComponent(e)}`,t)};async createUpload(e){let t=await this.post("/api/v1/uploads",e);return{...t.upload,asset:t.asset,contentType:t.upload.contentType,expiresAt:t.upload.expiresAt,intentId:t.upload.intentId,uploadUrl:t.upload.uploadUrl}}async completeUpload(e){return this.assets.complete({uploadIntentId:e})}async getGallery(e){let t=await this.galleries.retrieve(e,{includeAssets:!0});return{access:t.visibility==="public"?"public":"private",description:t.description,id:t.id,items:t.items?.map(a=>({alt:a.asset.alt,downloadUrl:a.asset.delivery.downloadUrl,id:a.asset.id,src:a.asset.delivery.src}))??[],layout:t.layout,name:t.name,slug:t.slug}}async track(e){let t=await this.rawRequest("/api/v1/events",{body:JSON.stringify({...e,occurredAt:e.occurredAt??new Date().toISOString()}),keepalive:!0,method:"POST"});if(!t.ok)throw new Error(`Event ingestion failed: ${t.status}`)}get(e,t){return this.requestData(e,{method:"GET"},t)}getList(e,t){return this.requestList(e,{method:"GET"},t)}patch(e,t){return this.requestData(e,{body:JSON.stringify(t),method:"PATCH"})}post(e,t){return this.requestData(e,{body:JSON.stringify(t),method:"POST"})}async requestData(e,t={},a){let s=await this.rawRequest(e,t,a);if(!s.ok)throw await this.toError(s);return(await s.json()).data}async requestList(e,t={},a){let s=await this.rawRequest(e,t,a);if(!s.ok)throw await this.toError(s);return await s.json()}rawRequest(e,t={},a){let s=this.options.fetch??fetch,l=new URL(e,this.options.apiUrl);for(let[p,r]of Object.entries(a??{}))r!=null&&l.searchParams.set(p,String(r));return s(l,{...t,headers:{"content-type":"application/json",...this.authToken?{authorization:`Bearer ${this.authToken}`}:{},...t.headers}})}get authToken(){return this.options.apiKey??this.options.readToken??this.options.publishableKey}async toError(e){let t=await e.json().catch(()=>{}),a=t?.error?.message??`The Gallery API request failed: ${e.status}`,s=new Error(a);return s.name=t?.error?.code??"GalleryApiError",s}};0&&(module.exports={GalleryClient});
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var i=class{constructor(e){this.options=e}options;assets={complete:e=>this.post("/api/v1/assets",e),list:(e={})=>this.getList("/api/v1/assets",e),retrieve:e=>this.get(`/api/v1/assets/${encodeURIComponent(e)}`),update:(e,t)=>this.patch(`/api/v1/assets/${encodeURIComponent(e)}`,t),uploadImage:e=>this.createUpload(e)};galleries={attachAssets:(e,t)=>this.post(`/api/v1/galleries/${encodeURIComponent(e)}/assets`,{assetIds:t}),create:e=>this.post("/api/v1/galleries",e),link:e=>this.get(`/api/v1/galleries/${encodeURIComponent(e)}/link`),list:(e={})=>this.getList("/api/v1/galleries",e),retrieve:(e,t={})=>this.get(`/api/v1/galleries/${encodeURIComponent(e)}`,{...t,include:t.includeAssets?"assets":void 0,includeAssets:void 0}),update:(e,t)=>this.patch(`/api/v1/galleries/${encodeURIComponent(e)}`,t)};async createUpload(e){let t=await this.post("/api/v1/uploads",e);return{...t.upload,asset:t.asset,contentType:t.upload.contentType,expiresAt:t.upload.expiresAt,intentId:t.upload.intentId,uploadUrl:t.upload.uploadUrl}}async completeUpload(e){return this.assets.complete({uploadIntentId:e})}async getGallery(e){let t=await this.galleries.retrieve(e,{includeAssets:!0});return{access:t.visibility==="public"?"public":"private",description:t.description,id:t.id,items:t.items?.map(s=>({alt:s.asset.alt,downloadUrl:s.asset.delivery.downloadUrl,id:s.asset.id,src:s.asset.delivery.src}))??[],layout:t.layout,name:t.name,slug:t.slug}}async track(e){let t=await this.rawRequest("/api/v1/events",{body:JSON.stringify({...e,occurredAt:e.occurredAt??new Date().toISOString()}),keepalive:!0,method:"POST"});if(!t.ok)throw new Error(`Event ingestion failed: ${t.status}`)}get(e,t){return this.requestData(e,{method:"GET"},t)}getList(e,t){return this.requestList(e,{method:"GET"},t)}patch(e,t){return this.requestData(e,{body:JSON.stringify(t),method:"PATCH"})}post(e,t){return this.requestData(e,{body:JSON.stringify(t),method:"POST"})}async requestData(e,t={},s){let a=await this.rawRequest(e,t,s);if(!a.ok)throw await this.toError(a);return(await a.json()).data}async requestList(e,t={},s){let a=await this.rawRequest(e,t,s);if(!a.ok)throw await this.toError(a);return await a.json()}rawRequest(e,t={},s){let a=this.options.fetch??fetch,r=new URL(e,this.options.apiUrl);for(let[o,n]of Object.entries(s??{}))n!=null&&r.searchParams.set(o,String(n));return a(r,{...t,headers:{"content-type":"application/json",...this.authToken?{authorization:`Bearer ${this.authToken}`}:{},...t.headers}})}get authToken(){return this.options.apiKey??this.options.readToken??this.options.publishableKey}async toError(e){let t=await e.json().catch(()=>{}),s=t?.error?.message??`The Gallery API request failed: ${e.status}`,a=new Error(s);return a.name=t?.error?.code??"GalleryApiError",a}};export{i as GalleryClient};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { ApiListResponse, Asset, ClientOptions, CompleteAssetInput, Gallery, GalleryDetail, GalleryEvent, GalleryInput, GalleryLinkPayload, GallerySummary, ListAssetsInput, ListInput, UploadImageInput, UploadIntent } from './types.js';
|
|
2
|
+
export declare class GalleryClient {
|
|
3
|
+
private readonly options;
|
|
4
|
+
readonly assets: {
|
|
5
|
+
complete: (input: CompleteAssetInput) => Promise<Asset>;
|
|
6
|
+
list: (input?: ListAssetsInput) => Promise<ApiListResponse<Asset>>;
|
|
7
|
+
retrieve: (assetId: string) => Promise<Asset>;
|
|
8
|
+
update: (assetId: string, input: Partial<CompleteAssetInput>) => Promise<Asset>;
|
|
9
|
+
uploadImage: (input: UploadImageInput) => Promise<UploadIntent>;
|
|
10
|
+
};
|
|
11
|
+
readonly galleries: {
|
|
12
|
+
attachAssets: (galleryIdOrSlug: string, assetIds: string[]) => Promise<GalleryDetail>;
|
|
13
|
+
create: (input: GalleryInput) => Promise<GallerySummary>;
|
|
14
|
+
link: (galleryIdOrSlug: string) => Promise<GalleryLinkPayload>;
|
|
15
|
+
list: (input?: ListInput) => Promise<ApiListResponse<GallerySummary>>;
|
|
16
|
+
retrieve: (galleryIdOrSlug: string, input?: ListInput & {
|
|
17
|
+
includeAssets?: boolean;
|
|
18
|
+
}) => Promise<GalleryDetail>;
|
|
19
|
+
update: (galleryIdOrSlug: string, input: Partial<GalleryInput>) => Promise<GallerySummary>;
|
|
20
|
+
};
|
|
21
|
+
constructor(options: ClientOptions);
|
|
22
|
+
createUpload(input: UploadImageInput): Promise<UploadIntent>;
|
|
23
|
+
completeUpload(intentId: string): Promise<Asset>;
|
|
24
|
+
getGallery(id: string): Promise<Gallery>;
|
|
25
|
+
track(event: GalleryEvent): Promise<void>;
|
|
26
|
+
private get;
|
|
27
|
+
private getList;
|
|
28
|
+
private patch;
|
|
29
|
+
private post;
|
|
30
|
+
private requestData;
|
|
31
|
+
private requestList;
|
|
32
|
+
private rawRequest;
|
|
33
|
+
private get authToken();
|
|
34
|
+
private toError;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/lib/client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EAEf,KAAK,EACL,aAAa,EACb,kBAAkB,EAClB,OAAO,EACP,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,kBAAkB,EAClB,cAAc,EACd,eAAe,EACf,SAAS,EACT,gBAAgB,EAChB,YAAY,EACb,MAAM,YAAY,CAAC;AAEpB,qBAAa,aAAa;IA8CZ,OAAO,CAAC,QAAQ,CAAC,OAAO;IA7CpC,QAAQ,CAAC,MAAM;0BACK,kBAAkB;uBAEtB,eAAe;4BAET,MAAM;0BAER,MAAM,SAAS,OAAO,CAAC,kBAAkB,CAAC;6BAEvC,gBAAgB;MACrC;IAEF,QAAQ,CAAC,SAAS;wCACgB,MAAM,YAAY,MAAM,EAAE;wBAK1C,YAAY;gCAEJ,MAAM;uBAIhB,SAAS;oCAGJ,MAAM,UAChB,SAAS,GAAG;YAAE,aAAa,CAAC,EAAE,OAAO,CAAA;SAAE;kCAUtB,MAAM,SAAS,OAAO,CAAC,YAAY,CAAC;MAK9D;gBAE2B,OAAO,EAAE,aAAa;IAE7C,YAAY,CAAC,KAAK,EAAE,gBAAgB,GAAG,OAAO,CAAC,YAAY,CAAC;IAgB5D,cAAc,CAAC,QAAQ,EAAE,MAAM;IAI/B,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAmBxC,KAAK,CAAC,KAAK,EAAE,YAAY;IAa/B,OAAO,CAAC,GAAG;IAIX,OAAO,CAAC,OAAO;IAIf,OAAO,CAAC,KAAK;IAOb,OAAO,CAAC,IAAI;YAOE,WAAW;YAUX,WAAW;IAUzB,OAAO,CAAC,UAAU;IAwBlB,OAAO,KAAK,SAAS,GAMpB;YAEa,OAAO;CAWtB"}
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
export type AccessMode = 'public' | 'private';
|
|
2
|
+
export type GalleryLayout = 'Grid' | 'Masonry' | 'Justified' | 'Carousel' | 'Single';
|
|
3
|
+
export type ApiResponse<T> = {
|
|
4
|
+
data: T;
|
|
5
|
+
meta?: Record<string, unknown>;
|
|
6
|
+
};
|
|
7
|
+
export type ApiListResponse<T> = {
|
|
8
|
+
data: T[];
|
|
9
|
+
pagination: {
|
|
10
|
+
cursor?: string | null;
|
|
11
|
+
limit: number;
|
|
12
|
+
nextCursor?: string | null;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export type GalleryItem = {
|
|
16
|
+
id: string;
|
|
17
|
+
src: string;
|
|
18
|
+
alt: string;
|
|
19
|
+
width?: number;
|
|
20
|
+
height?: number;
|
|
21
|
+
downloadUrl?: string;
|
|
22
|
+
};
|
|
23
|
+
export type Gallery = {
|
|
24
|
+
id: string;
|
|
25
|
+
name: string;
|
|
26
|
+
slug?: string;
|
|
27
|
+
description?: string;
|
|
28
|
+
access: AccessMode;
|
|
29
|
+
layout?: GalleryLayout;
|
|
30
|
+
items: GalleryItem[];
|
|
31
|
+
};
|
|
32
|
+
export type Asset = {
|
|
33
|
+
alt: string;
|
|
34
|
+
bytes: number;
|
|
35
|
+
contentType: string;
|
|
36
|
+
createdAt: string;
|
|
37
|
+
delivery: {
|
|
38
|
+
downloadUrl: string;
|
|
39
|
+
originalUrl: string;
|
|
40
|
+
src: string;
|
|
41
|
+
};
|
|
42
|
+
filename: string;
|
|
43
|
+
galleries?: GalleryReference[];
|
|
44
|
+
id: string;
|
|
45
|
+
status: string;
|
|
46
|
+
title: string | null;
|
|
47
|
+
visibility: 'private' | 'public' | 'unlisted';
|
|
48
|
+
};
|
|
49
|
+
export type GalleryReference = {
|
|
50
|
+
id: string;
|
|
51
|
+
name: string;
|
|
52
|
+
position: number;
|
|
53
|
+
slug: string;
|
|
54
|
+
status: string;
|
|
55
|
+
visibility: string;
|
|
56
|
+
};
|
|
57
|
+
export type GallerySummary = {
|
|
58
|
+
coverAssets?: Asset[];
|
|
59
|
+
createdAt: string;
|
|
60
|
+
description: string;
|
|
61
|
+
id: string;
|
|
62
|
+
itemCount: number;
|
|
63
|
+
layout: GalleryLayout;
|
|
64
|
+
links: GalleryLinkPayload['links'];
|
|
65
|
+
name: string;
|
|
66
|
+
render: GalleryLinkPayload['render'];
|
|
67
|
+
slug: string;
|
|
68
|
+
status: string;
|
|
69
|
+
version: number;
|
|
70
|
+
visibility: string;
|
|
71
|
+
};
|
|
72
|
+
export type GalleryDetail = GallerySummary & {
|
|
73
|
+
items?: {
|
|
74
|
+
asset: Asset;
|
|
75
|
+
position: number;
|
|
76
|
+
}[];
|
|
77
|
+
};
|
|
78
|
+
export type GalleryLinkPayload = {
|
|
79
|
+
links: {
|
|
80
|
+
api: string;
|
|
81
|
+
canonical: string;
|
|
82
|
+
embed: string;
|
|
83
|
+
};
|
|
84
|
+
render: {
|
|
85
|
+
galleryId: string;
|
|
86
|
+
layout: string;
|
|
87
|
+
slug: string;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
export type UploadIntent = {
|
|
91
|
+
asset?: {
|
|
92
|
+
alt: string;
|
|
93
|
+
contentType: string;
|
|
94
|
+
filename: string;
|
|
95
|
+
galleryIds: string[];
|
|
96
|
+
status: string;
|
|
97
|
+
visibility: string;
|
|
98
|
+
};
|
|
99
|
+
contentType?: string;
|
|
100
|
+
expiresAt?: string;
|
|
101
|
+
intentId: string;
|
|
102
|
+
method?: 'PUT';
|
|
103
|
+
upload?: {
|
|
104
|
+
contentType: string;
|
|
105
|
+
expiresAt: string;
|
|
106
|
+
intentId: string;
|
|
107
|
+
method: 'PUT';
|
|
108
|
+
uploadUrl: string;
|
|
109
|
+
};
|
|
110
|
+
uploadUrl: string;
|
|
111
|
+
};
|
|
112
|
+
export type GalleryEvent = {
|
|
113
|
+
event: 'gallery_view' | 'image_view' | 'interaction' | 'download';
|
|
114
|
+
galleryId: string;
|
|
115
|
+
assetId?: string;
|
|
116
|
+
occurredAt?: string;
|
|
117
|
+
};
|
|
118
|
+
export type ClientOptions = {
|
|
119
|
+
apiKey?: string;
|
|
120
|
+
apiUrl: string;
|
|
121
|
+
fetch?: typeof fetch;
|
|
122
|
+
publishableKey?: string;
|
|
123
|
+
readToken?: string;
|
|
124
|
+
};
|
|
125
|
+
export type UploadImageInput = {
|
|
126
|
+
alt?: string;
|
|
127
|
+
contentType: string;
|
|
128
|
+
filename: string;
|
|
129
|
+
galleryIds?: string[];
|
|
130
|
+
metadata?: Record<string, unknown>;
|
|
131
|
+
size: number;
|
|
132
|
+
visibility?: 'private' | 'public' | 'unlisted';
|
|
133
|
+
};
|
|
134
|
+
export type CompleteAssetInput = {
|
|
135
|
+
alt?: string;
|
|
136
|
+
galleryIds?: string[];
|
|
137
|
+
title?: string;
|
|
138
|
+
uploadIntentId: string;
|
|
139
|
+
visibility?: 'private' | 'public';
|
|
140
|
+
};
|
|
141
|
+
export type ListAssetsInput = {
|
|
142
|
+
cursor?: string;
|
|
143
|
+
galleryId?: string;
|
|
144
|
+
limit?: number;
|
|
145
|
+
visibility?: 'private' | 'public' | 'unlisted';
|
|
146
|
+
};
|
|
147
|
+
export type GalleryInput = {
|
|
148
|
+
description?: string;
|
|
149
|
+
layout?: GallerySummary['layout'];
|
|
150
|
+
name: string;
|
|
151
|
+
slug: string;
|
|
152
|
+
visibility?: 'private' | 'public' | 'unlisted';
|
|
153
|
+
};
|
|
154
|
+
export type ListInput = {
|
|
155
|
+
cursor?: string;
|
|
156
|
+
limit?: number;
|
|
157
|
+
};
|
|
158
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/lib/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,SAAS,CAAC;AAC9C,MAAM,MAAM,aAAa,GACrB,MAAM,GACN,SAAS,GACT,WAAW,GACX,UAAU,GACV,QAAQ,CAAC;AACb,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI;IAC3B,IAAI,EAAE,CAAC,CAAC;IACR,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAChC,CAAC;AACF,MAAM,MAAM,eAAe,CAAC,CAAC,IAAI;IAC/B,IAAI,EAAE,CAAC,EAAE,CAAC;IACV,UAAU,EAAE;QACV,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QACvB,KAAK,EAAE,MAAM,CAAC;QACd,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KAC5B,CAAC;CACH,CAAC;AACF,MAAM,MAAM,WAAW,GAAG;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AACF,MAAM,MAAM,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S,GAAG,QAAQ,GAAG,UAAU,CAAC;CAChD,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,cAAc,CAAC,QAAQ,CAAC,CAAC;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,UAAU,CAAC;CAChD,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG;IAAE,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@degallery/sdk",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"lib:publish": "npm publish --access public"
|
|
10
|
+
},
|
|
8
11
|
"exports": {
|
|
9
12
|
"./package.json": "./package.json",
|
|
10
13
|
".": {
|
|
@@ -50,7 +53,5 @@
|
|
|
50
53
|
}
|
|
51
54
|
}
|
|
52
55
|
},
|
|
53
|
-
"dependencies": {
|
|
54
|
-
|
|
55
|
-
}
|
|
56
|
-
}
|
|
56
|
+
"dependencies": {}
|
|
57
|
+
}
|