@vansite/ts-sharetribe-flex-sdk 3.0.11 → 3.1.0
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 +95 -122
- package/dist/endpoints/integrationApi/FileAttachments.d.ts +30 -0
- package/dist/endpoints/integrationApi/Files.d.ts +29 -0
- package/dist/endpoints/integrationApi/Messages.d.ts +33 -0
- package/dist/endpoints/integrationApi/Users.d.ts +17 -1
- package/dist/endpoints/integrationApi/index.d.ts +6 -0
- package/dist/endpoints/marketplace/FileDownloads.d.ts +32 -0
- package/dist/endpoints/marketplace/FileUploads.d.ts +34 -0
- package/dist/endpoints/marketplace/Files.d.ts +32 -0
- package/dist/endpoints/marketplace/OwnFileDownloads.d.ts +30 -0
- package/dist/endpoints/marketplace/OwnFiles.d.ts +49 -0
- package/dist/endpoints/marketplace/index.d.ts +10 -0
- package/dist/index.js +1 -1
- package/dist/index.js.LICENSE.txt +12 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.LICENSE.txt +12 -0
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.LICENSE.txt +12 -0
- package/dist/index.umd.js.map +1 -1
- package/dist/integrationSdk.d.ts +21 -0
- package/dist/sdk.d.ts +30 -0
- package/dist/types/endpoints/integrationApi/FileAttachments.d.ts +31 -0
- package/dist/types/endpoints/integrationApi/FileAttachments.d.ts.map +1 -0
- package/dist/types/endpoints/integrationApi/Files.d.ts +30 -0
- package/dist/types/endpoints/integrationApi/Files.d.ts.map +1 -0
- package/dist/types/endpoints/integrationApi/Messages.d.ts +34 -0
- package/dist/types/endpoints/integrationApi/Messages.d.ts.map +1 -0
- package/dist/types/endpoints/integrationApi/Users.d.ts +17 -1
- package/dist/types/endpoints/integrationApi/Users.d.ts.map +1 -1
- package/dist/types/endpoints/integrationApi/index.d.ts +6 -0
- package/dist/types/endpoints/integrationApi/index.d.ts.map +1 -1
- package/dist/types/endpoints/marketplace/FileDownloads.d.ts +33 -0
- package/dist/types/endpoints/marketplace/FileDownloads.d.ts.map +1 -0
- package/dist/types/endpoints/marketplace/FileUploads.d.ts +35 -0
- package/dist/types/endpoints/marketplace/FileUploads.d.ts.map +1 -0
- package/dist/types/endpoints/marketplace/Files.d.ts +33 -0
- package/dist/types/endpoints/marketplace/Files.d.ts.map +1 -0
- package/dist/types/endpoints/marketplace/OwnFileDownloads.d.ts +31 -0
- package/dist/types/endpoints/marketplace/OwnFileDownloads.d.ts.map +1 -0
- package/dist/types/endpoints/marketplace/OwnFiles.d.ts +50 -0
- package/dist/types/endpoints/marketplace/OwnFiles.d.ts.map +1 -0
- package/dist/types/endpoints/marketplace/index.d.ts +10 -0
- package/dist/types/endpoints/marketplace/index.d.ts.map +1 -1
- package/dist/types/integration/files.d.ts +66 -0
- package/dist/types/integrationSdk.d.ts +21 -0
- package/dist/types/integrationSdk.d.ts.map +1 -1
- package/dist/types/marketplace/files.d.ts +162 -0
- package/dist/types/marketplace/user.d.ts +11 -3
- package/dist/types/sdk.d.ts +30 -0
- package/dist/types/sdk.d.ts.map +1 -1
- package/dist/types/types/integration/files.d.ts +67 -0
- package/dist/types/types/integration/files.d.ts.map +1 -0
- package/dist/types/types/marketplace/files.d.ts +163 -0
- package/dist/types/types/marketplace/files.d.ts.map +1 -0
- package/dist/types/types/marketplace/user.d.ts +11 -3
- package/dist/types/types/marketplace/user.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integrationSdk.d.ts","sourceRoot":"","sources":["../../src/integrationSdk.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAE,SAAS,EAAC,MAAM,SAAS,CAAC;AAC9C,OAAc,EAAC,aAAa,EAAC,MAAM,OAAO,CAAC;AAC3C,OAAO,cAAc,MAAM,4BAA4B,CAAC;AAGxD,OAAO,iBAAiB,MAAM,kBAAkB,CAAC;AACjD,OAAO,sB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AAM,CAAC;IAEf;;;;OAIG;IACH,QAAQ,EAAE,QAAQ,CAAC;IAEnB;;;;OAIG;IACH,WAAW,EAAE,WAAW,CAAC;IAEzB;;;;OAIG;IACH,QAAQ,EAAE,QAAQ,CAAC;IAEnB;;;;OAIG;IACH,KAAK,EAAE,KAAK,CAAC;IAEb;;;;OAIG;IACH,gBAAgB,EAAE,gBAAgB,CAAC;IAEnC;;;;OAIG;IACH,iBAAiB,EAAE,iBAAiB,CAAC;IAErC;;;;OAIG;IACH,YAAY,EAAE,YAAY,CAAC;IAE3B;;;;OAIG;IACH,KAAK,EAAE,KAAK,CAAC;IAEb;;;;;OAKG;gBACS,MAAM,EAAE,SAAS;CAkC9B;AAED,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Type definitions for the file-sharing endpoints in the
|
|
3
|
+
* Sharetribe Marketplace API: files, own_files, file_uploads, file_downloads,
|
|
4
|
+
* and own_file_downloads.
|
|
5
|
+
*
|
|
6
|
+
* @see https://www.sharetribe.com/api-reference/marketplace.html#files
|
|
7
|
+
*/
|
|
8
|
+
import { ApiParameter, ExtraParameterType, UUID } from "../sharetribe";
|
|
9
|
+
/**
|
|
10
|
+
* Lifecycle states a file moves through from upload to availability.
|
|
11
|
+
*/
|
|
12
|
+
export type FileState = "pendingUpload" | "pendingVerification" | "available" | "verificationFailed";
|
|
13
|
+
/**
|
|
14
|
+
* Result of a verification check performed on a file (e.g. malware scan).
|
|
15
|
+
*/
|
|
16
|
+
export interface FileVerificationCheck {
|
|
17
|
+
type: string;
|
|
18
|
+
result: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* A file resource.
|
|
22
|
+
*
|
|
23
|
+
* The Marketplace API (`files/show`) exposes only `name`, `size`, `state` and
|
|
24
|
+
* `deleted`. The Integration API (`files/query`) additionally exposes the
|
|
25
|
+
* verification and timestamp attributes marked below — hence they are optional.
|
|
26
|
+
*/
|
|
27
|
+
export interface File {
|
|
28
|
+
id: UUID;
|
|
29
|
+
type: "file";
|
|
30
|
+
attributes: {
|
|
31
|
+
name: string;
|
|
32
|
+
size: number;
|
|
33
|
+
state: FileState;
|
|
34
|
+
deleted: boolean;
|
|
35
|
+
/** Integration API only. */
|
|
36
|
+
verificationChecks?: FileVerificationCheck[];
|
|
37
|
+
/** Integration API only. */
|
|
38
|
+
requiredVerificationChecks?: string[];
|
|
39
|
+
/** Integration API only. */
|
|
40
|
+
createdAt?: Date;
|
|
41
|
+
/** Integration API only. */
|
|
42
|
+
stateUpdatedAt?: Date;
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* A file owned by the current user.
|
|
47
|
+
*/
|
|
48
|
+
export interface OwnFile {
|
|
49
|
+
id: UUID;
|
|
50
|
+
type: "ownFile";
|
|
51
|
+
attributes: {
|
|
52
|
+
name: string;
|
|
53
|
+
size: number;
|
|
54
|
+
state: FileState;
|
|
55
|
+
createdAt: Date;
|
|
56
|
+
stateUpdatedAt: Date;
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* A signed upload instruction. The binary is PUT directly to `url` (outside
|
|
61
|
+
* the Sharetribe API) using the provided `headers`.
|
|
62
|
+
*/
|
|
63
|
+
export interface FileUpload {
|
|
64
|
+
id: UUID;
|
|
65
|
+
type: "fileUpload";
|
|
66
|
+
attributes: {
|
|
67
|
+
fileId: UUID;
|
|
68
|
+
method: string;
|
|
69
|
+
url: string;
|
|
70
|
+
headers: Record<string, string>;
|
|
71
|
+
expiresAt: Date;
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* A signed download URL for a file accessed via a file attachment.
|
|
76
|
+
*/
|
|
77
|
+
export interface FileDownload {
|
|
78
|
+
id: UUID;
|
|
79
|
+
type: "fileDownload";
|
|
80
|
+
attributes: {
|
|
81
|
+
fileId: UUID;
|
|
82
|
+
url: string;
|
|
83
|
+
expiresAt: Date;
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* A signed download URL for a file owned by the current user.
|
|
88
|
+
*/
|
|
89
|
+
export interface OwnFileDownload {
|
|
90
|
+
id: UUID;
|
|
91
|
+
type: "ownFileDownload";
|
|
92
|
+
attributes: {
|
|
93
|
+
fileId: UUID;
|
|
94
|
+
url: string;
|
|
95
|
+
expiresAt: Date;
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Expand behavior — applied to resource-returning create endpoints.
|
|
100
|
+
*/
|
|
101
|
+
type ExpandResult<T, EP extends ExtraParameterType | undefined> = EP extends {
|
|
102
|
+
expand: true;
|
|
103
|
+
} ? T : Omit<T, "attributes">;
|
|
104
|
+
/**
|
|
105
|
+
* files/show — fetch a file the current user can access.
|
|
106
|
+
*/
|
|
107
|
+
export interface FilesShowParameter extends ApiParameter {
|
|
108
|
+
fileAttachmentId: UUID | string;
|
|
109
|
+
}
|
|
110
|
+
export type FilesShowResponse = {
|
|
111
|
+
data: File;
|
|
112
|
+
};
|
|
113
|
+
/**
|
|
114
|
+
* own_files/show — fetch a file owned by the current user.
|
|
115
|
+
*/
|
|
116
|
+
export interface OwnFilesShowParameter extends ApiParameter {
|
|
117
|
+
id: UUID | string;
|
|
118
|
+
}
|
|
119
|
+
export type OwnFilesShowResponse = {
|
|
120
|
+
data: OwnFile;
|
|
121
|
+
};
|
|
122
|
+
/**
|
|
123
|
+
* own_files/create — register a new file owned by the current user. The
|
|
124
|
+
* actual bytes are uploaded afterwards via file_uploads/create.
|
|
125
|
+
*/
|
|
126
|
+
export interface OwnFilesCreateParameter extends ApiParameter {
|
|
127
|
+
name: string;
|
|
128
|
+
mimeType: string;
|
|
129
|
+
size: number;
|
|
130
|
+
}
|
|
131
|
+
export type OwnFilesCreateResponse<EP extends ExtraParameterType | undefined = undefined> = {
|
|
132
|
+
data: ExpandResult<OwnFile, EP>;
|
|
133
|
+
};
|
|
134
|
+
/**
|
|
135
|
+
* file_uploads/create — obtain a signed URL to upload bytes for an own file.
|
|
136
|
+
*/
|
|
137
|
+
export interface FileUploadsCreateParameter extends ApiParameter {
|
|
138
|
+
fileId: UUID | string;
|
|
139
|
+
}
|
|
140
|
+
export type FileUploadsCreateResponse = {
|
|
141
|
+
data: FileUpload;
|
|
142
|
+
};
|
|
143
|
+
/**
|
|
144
|
+
* file_downloads/create — obtain a signed download URL for a file accessed
|
|
145
|
+
* via a file attachment.
|
|
146
|
+
*/
|
|
147
|
+
export interface FileDownloadsCreateParameter extends ApiParameter {
|
|
148
|
+
fileAttachmentId: UUID | string;
|
|
149
|
+
}
|
|
150
|
+
export type FileDownloadsCreateResponse = {
|
|
151
|
+
data: FileDownload;
|
|
152
|
+
};
|
|
153
|
+
/**
|
|
154
|
+
* own_file_downloads/create — obtain a signed download URL for an own file.
|
|
155
|
+
*/
|
|
156
|
+
export interface OwnFileDownloadsCreateParameter extends ApiParameter {
|
|
157
|
+
fileId: UUID | string;
|
|
158
|
+
}
|
|
159
|
+
export type OwnFileDownloadsCreateResponse = {
|
|
160
|
+
data: OwnFileDownload;
|
|
161
|
+
};
|
|
162
|
+
export {};
|
|
@@ -5,7 +5,7 @@ import { ApiMeta, ApiParameter, ExtraParameter, ExtraParameterType, QueryMeta, Q
|
|
|
5
5
|
/**
|
|
6
6
|
* Available endpoints for the Users API.
|
|
7
7
|
*/
|
|
8
|
-
export type UsersEndpoints = "show" | "query" | "updateProfile" | "approve" | "updatePermissions";
|
|
8
|
+
export type UsersEndpoints = "show" | "query" | "updateProfile" | "approve" | "updatePermissions" | "verifyEmail";
|
|
9
9
|
/**
|
|
10
10
|
* Fields available for relationships in users.
|
|
11
11
|
*/
|
|
@@ -135,6 +135,14 @@ export interface UsersUpdatePermissionsParameter extends UsersParameter {
|
|
|
135
135
|
initiateTransactions?: Permissions;
|
|
136
136
|
read?: Permissions;
|
|
137
137
|
}
|
|
138
|
+
/**
|
|
139
|
+
* Verify a user's email (Integration API). `email` must match the user's
|
|
140
|
+
* current `email` or `pendingEmail` (case-insensitive).
|
|
141
|
+
*/
|
|
142
|
+
export interface UsersVerifyEmailParameter extends UsersParameter {
|
|
143
|
+
id: UUID | string;
|
|
144
|
+
email: string;
|
|
145
|
+
}
|
|
138
146
|
/**
|
|
139
147
|
* Custom profile data types (extensible but typed)
|
|
140
148
|
*/
|
|
@@ -182,11 +190,11 @@ type ExpandReturnType<T, EP extends ExtraParameter | undefined> = EP extends {
|
|
|
182
190
|
/**
|
|
183
191
|
* Final response data type per endpoint
|
|
184
192
|
*/
|
|
185
|
-
type UsersResponseData<E extends UsersEndpoints, P extends AllUsersParameter, EP extends ExtraParameter | undefined, I extends boolean> = E extends "show" ? UserType<IncludesRelationships<P>, I> : E extends "query" ? UserType<IncludesRelationships<P>, I>[] : E extends "updateProfile" | "approve" | "updatePermissions" ? ExpandReturnType<UserType<IncludesRelationships<P>, I>, EP> : never;
|
|
193
|
+
type UsersResponseData<E extends UsersEndpoints, P extends AllUsersParameter, EP extends ExtraParameter | undefined, I extends boolean> = E extends "show" ? UserType<IncludesRelationships<P>, I> : E extends "query" ? UserType<IncludesRelationships<P>, I>[] : E extends "updateProfile" | "approve" | "updatePermissions" | "verifyEmail" ? ExpandReturnType<UserType<IncludesRelationships<P>, I>, EP> : never;
|
|
186
194
|
/**
|
|
187
195
|
* Union of all valid parameter types
|
|
188
196
|
*/
|
|
189
|
-
type AllUsersParameter = UsersShowParameter<any> | UsersQueryParameter | UsersUpdateProfileParameter | UsersApproveParameter | UsersUpdatePermissionsParameter;
|
|
197
|
+
type AllUsersParameter = UsersShowParameter<any> | UsersQueryParameter | UsersUpdateProfileParameter | UsersApproveParameter | UsersUpdatePermissionsParameter | UsersVerifyEmailParameter;
|
|
190
198
|
/**
|
|
191
199
|
* Final response type
|
|
192
200
|
*/
|
package/dist/types/sdk.d.ts
CHANGED
|
@@ -6,6 +6,11 @@ import Listings from "./endpoints/marketplace/Listings";
|
|
|
6
6
|
import AvailabilityExceptions from "./endpoints/marketplace/AvailabilityExceptions";
|
|
7
7
|
import Bookings from "./endpoints/marketplace/Bookings";
|
|
8
8
|
import CurrentUser from "./endpoints/marketplace/CurrentUser";
|
|
9
|
+
import Files from "./endpoints/marketplace/Files";
|
|
10
|
+
import OwnFiles from "./endpoints/marketplace/OwnFiles";
|
|
11
|
+
import FileUploads from "./endpoints/marketplace/FileUploads";
|
|
12
|
+
import FileDownloads from "./endpoints/marketplace/FileDownloads";
|
|
13
|
+
import OwnFileDownloads from "./endpoints/marketplace/OwnFileDownloads";
|
|
9
14
|
import Images from "./endpoints/marketplace/Images";
|
|
10
15
|
import Marketplace from "./endpoints/marketplace/Marketplace";
|
|
11
16
|
import Messages from "./endpoints/marketplace/Messages";
|
|
@@ -76,6 +81,31 @@ declare class SharetribeSdk {
|
|
|
76
81
|
* @type {CurrentUser}
|
|
77
82
|
*/
|
|
78
83
|
currentUser: CurrentUser;
|
|
84
|
+
/**
|
|
85
|
+
* Endpoint for reading shared files.
|
|
86
|
+
* @type {Files}
|
|
87
|
+
*/
|
|
88
|
+
files: Files;
|
|
89
|
+
/**
|
|
90
|
+
* Endpoint for managing the current user's own files.
|
|
91
|
+
* @type {OwnFiles}
|
|
92
|
+
*/
|
|
93
|
+
ownFiles: OwnFiles;
|
|
94
|
+
/**
|
|
95
|
+
* Endpoint for obtaining signed upload URLs.
|
|
96
|
+
* @type {FileUploads}
|
|
97
|
+
*/
|
|
98
|
+
fileUploads: FileUploads;
|
|
99
|
+
/**
|
|
100
|
+
* Endpoint for obtaining signed download URLs for shared files.
|
|
101
|
+
* @type {FileDownloads}
|
|
102
|
+
*/
|
|
103
|
+
fileDownloads: FileDownloads;
|
|
104
|
+
/**
|
|
105
|
+
* Endpoint for obtaining signed download URLs for own files.
|
|
106
|
+
* @type {OwnFileDownloads}
|
|
107
|
+
*/
|
|
108
|
+
ownFileDownloads: OwnFileDownloads;
|
|
79
109
|
/**
|
|
80
110
|
* Endpoint for handling images.
|
|
81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gB,CAAC,CAAC,CAAC;IAW1D;;;;;OAKG;IACG,MAAM,IAAI,OAAO,CAAC,aAAa,CAAC,cAAc,CAAC,CAAC;IActD;;;;;OAKG;IACG,aAAa,IAAI,OAAO,CAAC,aAAa,CAAC,aAAa,CAAC,uBAAuB,CAAC,CAAC,CAAC;IAiCrF;;;;;OAKG;IACG,QAAQ,IAAI,OAAO,CAAC,gBAAgB,CAAC;CAoC5C;AAED,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Type definitions for the file endpoints in the Sharetribe
|
|
3
|
+
* Integration API: files/query and file_attachments/query.
|
|
4
|
+
*
|
|
5
|
+
* @see https://www.sharetribe.com/api-reference/integration.html#files
|
|
6
|
+
*/
|
|
7
|
+
import { ApiMeta, ApiParameter, UUID } from "../sharetribe";
|
|
8
|
+
import { File } from "../marketplace/files";
|
|
9
|
+
import { User } from "../marketplace/user";
|
|
10
|
+
import { Marketplace } from "../marketplace/marketplace";
|
|
11
|
+
import { Message } from "../marketplace/messages";
|
|
12
|
+
/**
|
|
13
|
+
* Scope controls who can access a file attachment. Only `public` is currently
|
|
14
|
+
* documented by the API.
|
|
15
|
+
*/
|
|
16
|
+
export type FileAttachmentScope = "public";
|
|
17
|
+
/**
|
|
18
|
+
* Links a file to a resource (e.g. a transaction message).
|
|
19
|
+
*/
|
|
20
|
+
export interface FileAttachment {
|
|
21
|
+
id: UUID;
|
|
22
|
+
type: "fileAttachment";
|
|
23
|
+
attributes: {
|
|
24
|
+
scope: FileAttachmentScope;
|
|
25
|
+
deleted: boolean;
|
|
26
|
+
};
|
|
27
|
+
relationships?: {
|
|
28
|
+
file: {
|
|
29
|
+
data: {
|
|
30
|
+
id: UUID;
|
|
31
|
+
type: "file";
|
|
32
|
+
} | null;
|
|
33
|
+
};
|
|
34
|
+
/** Only present when the file is attached to a message. */
|
|
35
|
+
message?: {
|
|
36
|
+
data: {
|
|
37
|
+
id: UUID;
|
|
38
|
+
type: "message";
|
|
39
|
+
} | null;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* files/query — list files in the marketplace, filtered by owner.
|
|
45
|
+
*/
|
|
46
|
+
export interface FilesQueryParameter extends ApiParameter {
|
|
47
|
+
ownerId?: UUID | string;
|
|
48
|
+
include?: ("owner" | "marketplace")[];
|
|
49
|
+
}
|
|
50
|
+
export type FilesQueryResponse = {
|
|
51
|
+
data: File[];
|
|
52
|
+
included?: (User | Marketplace)[];
|
|
53
|
+
meta: ApiMeta;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* file_attachments/query — list file attachments, filtered by message.
|
|
57
|
+
*/
|
|
58
|
+
export interface FileAttachmentsQueryParameter extends ApiParameter {
|
|
59
|
+
messageId?: UUID | string;
|
|
60
|
+
include?: ("file" | "message")[];
|
|
61
|
+
}
|
|
62
|
+
export type FileAttachmentsQueryResponse = {
|
|
63
|
+
data: FileAttachment[];
|
|
64
|
+
included?: (File | Message)[];
|
|
65
|
+
meta: ApiMeta;
|
|
66
|
+
};
|
|
67
|
+
//# sourceMappingURL=files.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../../../src/types/integration/files.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAC,OAAO,EAAE,YAAY,EAAE,IAAI,EAAC,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAC,IAAI,EAAC,MAAM,sBAAsB,CAAC;AAC1C,OAAO,EAAC,IAAI,EAAC,MAAM,qBAAqB,CAAC;AACzC,OAAO,EAAC,WAAW,EAAC,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAC,OAAO,EAAC,MAAM,yBAAyB,CAAC;AAEhD;;;GAGG;AACH,MAAM,MAAM,mBAAmB,GAAG,QAAQ,CAAC;AAE3C;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B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
* @fileoverview Type definitions for the file-sharing endpoints in the
|
|
3
|
+
* Sharetribe Marketplace API: files, own_files, file_uploads, file_downloads,
|
|
4
|
+
* and own_file_downloads.
|
|
5
|
+
*
|
|
6
|
+
* @see https://www.sharetribe.com/api-reference/marketplace.html#files
|
|
7
|
+
*/
|
|
8
|
+
import { ApiParameter, ExtraParameterType, UUID } from "../sharetribe";
|
|
9
|
+
/**
|
|
10
|
+
* Lifecycle states a file moves through from upload to availability.
|
|
11
|
+
*/
|
|
12
|
+
export type FileState = "pendingUpload" | "pendingVerification" | "available" | "verificationFailed";
|
|
13
|
+
/**
|
|
14
|
+
* Result of a verification check performed on a file (e.g. malware scan).
|
|
15
|
+
*/
|
|
16
|
+
export interface FileVerificationCheck {
|
|
17
|
+
type: string;
|
|
18
|
+
result: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* A file resource.
|
|
22
|
+
*
|
|
23
|
+
* The Marketplace API (`files/show`) exposes only `name`, `size`, `state` and
|
|
24
|
+
* `deleted`. The Integration API (`files/query`) additionally exposes the
|
|
25
|
+
* verification and timestamp attributes marked below — hence they are optional.
|
|
26
|
+
*/
|
|
27
|
+
export interface File {
|
|
28
|
+
id: UUID;
|
|
29
|
+
type: "file";
|
|
30
|
+
attributes: {
|
|
31
|
+
name: string;
|
|
32
|
+
size: number;
|
|
33
|
+
state: FileState;
|
|
34
|
+
deleted: boolean;
|
|
35
|
+
/** Integration API only. */
|
|
36
|
+
verificationChecks?: FileVerificationCheck[];
|
|
37
|
+
/** Integration API only. */
|
|
38
|
+
requiredVerificationChecks?: string[];
|
|
39
|
+
/** Integration API only. */
|
|
40
|
+
createdAt?: Date;
|
|
41
|
+
/** Integration API only. */
|
|
42
|
+
stateUpdatedAt?: Date;
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* A file owned by the current user.
|
|
47
|
+
*/
|
|
48
|
+
export interface OwnFile {
|
|
49
|
+
id: UUID;
|
|
50
|
+
type: "ownFile";
|
|
51
|
+
attributes: {
|
|
52
|
+
name: string;
|
|
53
|
+
size: number;
|
|
54
|
+
state: FileState;
|
|
55
|
+
createdAt: Date;
|
|
56
|
+
stateUpdatedAt: Date;
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* A signed upload instruction. The binary is PUT directly to `url` (outside
|
|
61
|
+
* the Sharetribe API) using the provided `headers`.
|
|
62
|
+
*/
|
|
63
|
+
export interface FileUpload {
|
|
64
|
+
id: UUID;
|
|
65
|
+
type: "fileUpload";
|
|
66
|
+
attributes: {
|
|
67
|
+
fileId: UUID;
|
|
68
|
+
method: string;
|
|
69
|
+
url: string;
|
|
70
|
+
headers: Record<string, string>;
|
|
71
|
+
expiresAt: Date;
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* A signed download URL for a file accessed via a file attachment.
|
|
76
|
+
*/
|
|
77
|
+
export interface FileDownload {
|
|
78
|
+
id: UUID;
|
|
79
|
+
type: "fileDownload";
|
|
80
|
+
attributes: {
|
|
81
|
+
fileId: UUID;
|
|
82
|
+
url: string;
|
|
83
|
+
expiresAt: Date;
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* A signed download URL for a file owned by the current user.
|
|
88
|
+
*/
|
|
89
|
+
export interface OwnFileDownload {
|
|
90
|
+
id: UUID;
|
|
91
|
+
type: "ownFileDownload";
|
|
92
|
+
attributes: {
|
|
93
|
+
fileId: UUID;
|
|
94
|
+
url: string;
|
|
95
|
+
expiresAt: Date;
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Expand behavior — applied to resource-returning create endpoints.
|
|
100
|
+
*/
|
|
101
|
+
type ExpandResult<T, EP extends ExtraParameterType | undefined> = EP extends {
|
|
102
|
+
expand: true;
|
|
103
|
+
} ? T : Omit<T, "attributes">;
|
|
104
|
+
/**
|
|
105
|
+
* files/show — fetch a file the current user can access.
|
|
106
|
+
*/
|
|
107
|
+
export interface FilesShowParameter extends ApiParameter {
|
|
108
|
+
fileAttachmentId: UUID | string;
|
|
109
|
+
}
|
|
110
|
+
export type FilesShowResponse = {
|
|
111
|
+
data: File;
|
|
112
|
+
};
|
|
113
|
+
/**
|
|
114
|
+
* own_files/show — fetch a file owned by the current user.
|
|
115
|
+
*/
|
|
116
|
+
export interface OwnFilesShowParameter extends ApiParameter {
|
|
117
|
+
id: UUID | string;
|
|
118
|
+
}
|
|
119
|
+
export type OwnFilesShowResponse = {
|
|
120
|
+
data: OwnFile;
|
|
121
|
+
};
|
|
122
|
+
/**
|
|
123
|
+
* own_files/create — register a new file owned by the current user. The
|
|
124
|
+
* actual bytes are uploaded afterwards via file_uploads/create.
|
|
125
|
+
*/
|
|
126
|
+
export interface OwnFilesCreateParameter extends ApiParameter {
|
|
127
|
+
name: string;
|
|
128
|
+
mimeType: string;
|
|
129
|
+
size: number;
|
|
130
|
+
}
|
|
131
|
+
export type OwnFilesCreateResponse<EP extends ExtraParameterType | undefined = undefined> = {
|
|
132
|
+
data: ExpandResult<OwnFile, EP>;
|
|
133
|
+
};
|
|
134
|
+
/**
|
|
135
|
+
* file_uploads/create — obtain a signed URL to upload bytes for an own file.
|
|
136
|
+
*/
|
|
137
|
+
export interface FileUploadsCreateParameter extends ApiParameter {
|
|
138
|
+
fileId: UUID | string;
|
|
139
|
+
}
|
|
140
|
+
export type FileUploadsCreateResponse = {
|
|
141
|
+
data: FileUpload;
|
|
142
|
+
};
|
|
143
|
+
/**
|
|
144
|
+
* file_downloads/create — obtain a signed download URL for a file accessed
|
|
145
|
+
* via a file attachment.
|
|
146
|
+
*/
|
|
147
|
+
export interface FileDownloadsCreateParameter extends ApiParameter {
|
|
148
|
+
fileAttachmentId: UUID | string;
|
|
149
|
+
}
|
|
150
|
+
export type FileDownloadsCreateResponse = {
|
|
151
|
+
data: FileDownload;
|
|
152
|
+
};
|
|
153
|
+
/**
|
|
154
|
+
* own_file_downloads/create — obtain a signed download URL for an own file.
|
|
155
|
+
*/
|
|
156
|
+
export interface OwnFileDownloadsCreateParameter extends ApiParameter {
|
|
157
|
+
fileId: UUID | string;
|
|
158
|
+
}
|
|
159
|
+
export type OwnFileDownloadsCreateResponse = {
|
|
160
|
+
data: OwnFileDownload;
|
|
161
|
+
};
|
|
162
|
+
export {};
|
|
163
|
+
//# sourceMappingURL=files.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../../../src/types/marketplace/files.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAC,YAAY,EAAE,kBAAkB,EAAE,IAAI,EAAC,MAAM,eAAe,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,SAAS,GACjB,eAAe,GACf,qBAAqB,GACrB,WAAW,GACX,oBAAoB,CAAC;AAEzB;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,IAAI;IACnB,EAAE,EAAE,IAAI,CAAC;IACT,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE;QACV,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,SAAS,CAAC;QACjB,OAAO,EAAE,OAAO,CAAC;QACjB,4BAA4B;QAC5B,kBAAkB,CAAC,EAAE,qBAAqB,EAAE,CAAC;QAC7C,4BAA4B;QAC5B,0BAA0B,CAAC,EAAE,MAAM,EAAE,CAAC;QACtC,4BAA4B;QAC5B,SAAS,CAAC,EAAE,IAAI,CAAC;QACjB,4BAA4B;QAC5B,cAAc,CAAC,EAAE,IAAI,CAAC;KACvB,CAAC;CACH;AAED;;GAEG;AACH,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,IAAI,CAAC;IACT,IAAI,EAAE,SAAS,CAAC;IAChB,UAA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iBAAiB,GAAG;IAAE,IAAI,EAAE,IAAI,CAAA;CAAE,CAAC;AAE/C;;GAEG;AACH,MAAM,WAAW,qBAAsB,SAAQ,YAAY;IACzD,EAAE,EAAE,IAAI,GAAG,MAAM,CAAC;CACnB;AAED,MAAM,MAAM,oBAAoB,GAAG;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,CAAC;AAErD;;;GAGG;AACH,MAAM,WAAW,uBAAwB,SAAQ,YAAY;IAC3D,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,MAAM,sBAAsB,CAChC,EAAE,SAAS,kBAAkB,GAAG,SAAS,GAAG,SAAS,IACnD;IAAE,IAAI,EAAE,YAAY,CAAC,OAAO,EAAE,EAAE,CAAC,CAAA;CAAE,CAAC;AAExC;;GAEG;AACH,MAAM,WAAW,0BAA2B,SAAQ,YAAY;IAC9D,MAAM,EAAE,IAAI,GAAG,MAAM,CAAC;CACvB;AAED,MAAM,MAAM,yBAAyB,GAAG;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC;AAE7D;;;GAGG;AACH,MAAM,WAAW,4BAA6B,SAAQ,YAAY;IAChE,gBAAgB,EAAE,IAAI,GAAG,MAAM,CAAC;CACjC;AAED,MAAM,MAAM,2BAA2B,GAAG;IAAE,IAAI,EAAE,YAAY,CAAA;CAAE,CAAC;AAEjE;;GAEG;AACH,MAAM,WAAW,+BAAgC,SAAQ,YAAY;IACnE,MAAM,EAAE,IAAI,GAAG,MAAM,CAAC;CACvB;AAED,MAAM,MAAM,8BAA8B,GAAG;IAAE,IAAI,EAAE,eAAe,CAAA;CAAE,CAAC"}
|
|
@@ -5,7 +5,7 @@ import { ApiMeta, ApiParameter, ExtraParameter, ExtraParameterType, QueryMeta, Q
|
|
|
5
5
|
/**
|
|
6
6
|
* Available endpoints for the Users API.
|
|
7
7
|
*/
|
|
8
|
-
export type UsersEndpoints = "show" | "query" | "updateProfile" | "approve" | "updatePermissions";
|
|
8
|
+
export type UsersEndpoints = "show" | "query" | "updateProfile" | "approve" | "updatePermissions" | "verifyEmail";
|
|
9
9
|
/**
|
|
10
10
|
* Fields available for relationships in users.
|
|
11
11
|
*/
|
|
@@ -135,6 +135,14 @@ export interface UsersUpdatePermissionsParameter extends UsersParameter {
|
|
|
135
135
|
initiateTransactions?: Permissions;
|
|
136
136
|
read?: Permissions;
|
|
137
137
|
}
|
|
138
|
+
/**
|
|
139
|
+
* Verify a user's email (Integration API). `email` must match the user's
|
|
140
|
+
* current `email` or `pendingEmail` (case-insensitive).
|
|
141
|
+
*/
|
|
142
|
+
export interface UsersVerifyEmailParameter extends UsersParameter {
|
|
143
|
+
id: UUID | string;
|
|
144
|
+
email: string;
|
|
145
|
+
}
|
|
138
146
|
/**
|
|
139
147
|
* Custom profile data types (extensible but typed)
|
|
140
148
|
*/
|
|
@@ -182,11 +190,11 @@ type ExpandReturnType<T, EP extends ExtraParameter | undefined> = EP extends {
|
|
|
182
190
|
/**
|
|
183
191
|
* Final response data type per endpoint
|
|
184
192
|
*/
|
|
185
|
-
type UsersResponseData<E extends UsersEndpoints, P extends AllUsersParameter, EP extends ExtraParameter | undefined, I extends boolean> = E extends "show" ? UserType<IncludesRelationships<P>, I> : E extends "query" ? UserType<IncludesRelationships<P>, I>[] : E extends "updateProfile" | "approve" | "updatePermissions" ? ExpandReturnType<UserType<IncludesRelationships<P>, I>, EP> : never;
|
|
193
|
+
type UsersResponseData<E extends UsersEndpoints, P extends AllUsersParameter, EP extends ExtraParameter | undefined, I extends boolean> = E extends "show" ? UserType<IncludesRelationships<P>, I> : E extends "query" ? UserType<IncludesRelationships<P>, I>[] : E extends "updateProfile" | "approve" | "updatePermissions" | "verifyEmail" ? ExpandReturnType<UserType<IncludesRelationships<P>, I>, EP> : never;
|
|
186
194
|
/**
|
|
187
195
|
* Union of all valid parameter types
|
|
188
196
|
*/
|
|
189
|
-
type AllUsersParameter = UsersShowParameter<any> | UsersQueryParameter | UsersUpdateProfileParameter | UsersApproveParameter | UsersUpdatePermissionsParameter;
|
|
197
|
+
type AllUsersParameter = UsersShowParameter<any> | UsersQueryParameter | UsersUpdateProfileParameter | UsersApproveParameter | UsersUpdatePermissionsParameter | UsersVerifyEmailParameter;
|
|
190
198
|
/**
|
|
191
199
|
* Final response type
|
|
192
200
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../../src/types/marketplace/user.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EACL,OAAO,EACP,YAAY,EACZ,cAAc,EACd,kBAAkB,EAClB,SAAS,EACT,SAAS,EACT,SAAS,EACT,QAAQ,EACR,YAAY,EACZ,mBAAmB,EACnB,IAAI,EACL,MAAM,eAAe,CAAC;AAEvB;;GAEG;AACH,MAAM,MAAM,cAAc,GACtB,MAAM,GACN,OAAO,GACP,eAAe,GACf,SAAS,GACT,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../../src/types/marketplace/user.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EACL,OAAO,EACP,YAAY,EACZ,cAAc,EACd,kBAAkB,EAClB,SAAS,EACT,SAAS,EACT,SAAS,EACT,QAAQ,EACR,YAAY,EACZ,mBAAmB,EACnB,IAAI,EACL,MAAM,eAAe,CAAC;AAEvB;;GAEG;AACH,MAAM,MAAM,cAAc,GACtB,MAAM,GACN,OAAO,GACP,eAAe,GACf,SAAS,GACT,mBAAmB,GACnB,aAAa,CAAC;AAElB;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAChC,aAAa,GACb,cAAc,GACd,eAAe,GACf,wBAAwB,CAAC;AAE7B;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,QAAQ,GAAG,iBAAiB,CAAC;AAEhE;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,kBAAkB,GAAG,i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|
|
2
2
|
"name": "@vansite/ts-sharetribe-flex-sdk",
|
|
3
|
-
"version": "3.0
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"description": "This is a TypeScript SDK for Sharetribe Flex API. It reduces the complexity of the API and provides a more user-friendly interface.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"sharetribe",
|