@disconnectme/lightbox-sdk 0.1.0 → 0.1.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 +6 -6
- package/dist/index.d.cts +23 -14
- package/dist/index.d.ts +23 -14
- package/dist/index.js +6 -6
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -100,7 +100,7 @@ var LightboxClient = class {
|
|
|
100
100
|
*/
|
|
101
101
|
apps = {
|
|
102
102
|
/**
|
|
103
|
-
* Search for iOS apps by framework,
|
|
103
|
+
* Search for iOS apps by framework, entitlement, usage_key, genre, developer, name, or bundle.
|
|
104
104
|
* Requires at least one filter parameter.
|
|
105
105
|
*/
|
|
106
106
|
search: (params) => {
|
|
@@ -109,7 +109,7 @@ var LightboxClient = class {
|
|
|
109
109
|
/**
|
|
110
110
|
* Get detailed profile for a specific app bundle.
|
|
111
111
|
* Use `version` param to get a specific version, defaults to latest.
|
|
112
|
-
* Use `include` to specify which fields to include (frameworks,
|
|
112
|
+
* Use `include` to specify which fields to include (frameworks, entitlements, privacy, urls, files, all).
|
|
113
113
|
*/
|
|
114
114
|
get: (bundle, params) => {
|
|
115
115
|
const queryParams = {};
|
|
@@ -161,15 +161,15 @@ var LightboxClient = class {
|
|
|
161
161
|
return this.request("/v1/apps/ios/metadata/frameworks", params);
|
|
162
162
|
},
|
|
163
163
|
/**
|
|
164
|
-
* Get available
|
|
164
|
+
* Get available iOS entitlements with app counts.
|
|
165
165
|
* Supports pagination and search.
|
|
166
|
-
* @param params.search - Filter by
|
|
166
|
+
* @param params.search - Filter by entitlement key (case-insensitive contains)
|
|
167
167
|
* @param params.sort - Sort by 'popularity' (default) or 'name'
|
|
168
168
|
* @param params.limit - Results per page (default 100, max 1000)
|
|
169
169
|
* @param params.offset - Pagination offset
|
|
170
170
|
*/
|
|
171
|
-
|
|
172
|
-
return this.request("/v1/apps/ios/metadata/
|
|
171
|
+
entitlements: (params) => {
|
|
172
|
+
return this.request("/v1/apps/ios/metadata/entitlements", params);
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
175
|
};
|
package/dist/index.d.cts
CHANGED
|
@@ -77,7 +77,10 @@ interface AppSummary {
|
|
|
77
77
|
rating: number | null;
|
|
78
78
|
app_store_url: string | null;
|
|
79
79
|
frameworks: string[];
|
|
80
|
-
|
|
80
|
+
entitlements: string[];
|
|
81
|
+
icon: string | null;
|
|
82
|
+
size: number | null;
|
|
83
|
+
min_os_version: string | null;
|
|
81
84
|
created_at: string;
|
|
82
85
|
}
|
|
83
86
|
interface AppProfile {
|
|
@@ -90,9 +93,14 @@ interface AppProfile {
|
|
|
90
93
|
review_count: number | null;
|
|
91
94
|
rating: number | null;
|
|
92
95
|
app_store_url: string | null;
|
|
96
|
+
icon: string | null;
|
|
97
|
+
size: number | null;
|
|
98
|
+
min_os_version: string | null;
|
|
99
|
+
screenshots: string[];
|
|
100
|
+
usage_descriptions: Record<string, string>;
|
|
93
101
|
created_at: string;
|
|
94
102
|
frameworks?: string[];
|
|
95
|
-
|
|
103
|
+
entitlements?: string[];
|
|
96
104
|
privacy?: unknown[];
|
|
97
105
|
urls?: unknown[];
|
|
98
106
|
files?: unknown[];
|
|
@@ -159,7 +167,8 @@ interface FileSearchParams extends PaginationParams {
|
|
|
159
167
|
}
|
|
160
168
|
interface AppSearchParams extends PaginationParams {
|
|
161
169
|
framework?: string;
|
|
162
|
-
|
|
170
|
+
entitlement?: string;
|
|
171
|
+
usage_key?: string;
|
|
163
172
|
genre?: string;
|
|
164
173
|
developer?: string;
|
|
165
174
|
name?: string;
|
|
@@ -185,7 +194,7 @@ interface FrameworkItem {
|
|
|
185
194
|
name: string;
|
|
186
195
|
app_count: number;
|
|
187
196
|
}
|
|
188
|
-
interface
|
|
197
|
+
interface EntitlementItem {
|
|
189
198
|
key: string;
|
|
190
199
|
app_count: number;
|
|
191
200
|
}
|
|
@@ -199,10 +208,10 @@ interface FrameworkListData {
|
|
|
199
208
|
total: number;
|
|
200
209
|
frameworks: FrameworkItem[];
|
|
201
210
|
}
|
|
202
|
-
interface
|
|
203
|
-
type: "
|
|
211
|
+
interface EntitlementListData {
|
|
212
|
+
type: "entitlement_list";
|
|
204
213
|
total: number;
|
|
205
|
-
|
|
214
|
+
entitlements: EntitlementItem[];
|
|
206
215
|
}
|
|
207
216
|
interface MetadataSearchParams extends PaginationParams {
|
|
208
217
|
search?: string;
|
|
@@ -216,7 +225,7 @@ type AppVersionsResponse = APIResponse<AppVersionsData>;
|
|
|
216
225
|
type AppFilesResponse = APIResponse<AppFilesData>;
|
|
217
226
|
type GenreListResponse = APIResponse<GenreListData>;
|
|
218
227
|
type FrameworkListResponse = APIResponse<FrameworkListData>;
|
|
219
|
-
type
|
|
228
|
+
type EntitlementListResponse = APIResponse<EntitlementListData>;
|
|
220
229
|
|
|
221
230
|
interface LightboxClientConfig {
|
|
222
231
|
apiKey: string;
|
|
@@ -255,14 +264,14 @@ declare class LightboxClient {
|
|
|
255
264
|
*/
|
|
256
265
|
apps: {
|
|
257
266
|
/**
|
|
258
|
-
* Search for iOS apps by framework,
|
|
267
|
+
* Search for iOS apps by framework, entitlement, usage_key, genre, developer, name, or bundle.
|
|
259
268
|
* Requires at least one filter parameter.
|
|
260
269
|
*/
|
|
261
270
|
search: (params: AppSearchParams) => Promise<AppSearchResponse>;
|
|
262
271
|
/**
|
|
263
272
|
* Get detailed profile for a specific app bundle.
|
|
264
273
|
* Use `version` param to get a specific version, defaults to latest.
|
|
265
|
-
* Use `include` to specify which fields to include (frameworks,
|
|
274
|
+
* Use `include` to specify which fields to include (frameworks, entitlements, privacy, urls, files, all).
|
|
266
275
|
*/
|
|
267
276
|
get: (bundle: string, params?: AppGetParams) => Promise<AppProfileResponse>;
|
|
268
277
|
/**
|
|
@@ -292,16 +301,16 @@ declare class LightboxClient {
|
|
|
292
301
|
*/
|
|
293
302
|
frameworks: (params?: MetadataSearchParams) => Promise<FrameworkListResponse>;
|
|
294
303
|
/**
|
|
295
|
-
* Get available
|
|
304
|
+
* Get available iOS entitlements with app counts.
|
|
296
305
|
* Supports pagination and search.
|
|
297
|
-
* @param params.search - Filter by
|
|
306
|
+
* @param params.search - Filter by entitlement key (case-insensitive contains)
|
|
298
307
|
* @param params.sort - Sort by 'popularity' (default) or 'name'
|
|
299
308
|
* @param params.limit - Results per page (default 100, max 1000)
|
|
300
309
|
* @param params.offset - Pagination offset
|
|
301
310
|
*/
|
|
302
|
-
|
|
311
|
+
entitlements: (params?: MetadataSearchParams) => Promise<EntitlementListResponse>;
|
|
303
312
|
};
|
|
304
313
|
};
|
|
305
314
|
}
|
|
306
315
|
|
|
307
|
-
export { type APIError, type APIMetadata, type APIResponse, type AppFile, type AppFilesData, type AppFilesParams, type AppFilesResponse, type AppGetParams, type AppProfile, type AppProfileData, type AppProfileResponse, type AppSearchData, type AppSearchParams, type AppSearchResponse, type AppSummary, type AppVersion, type AppVersionsData, type AppVersionsResponse, type FileHashData, type FileHashResponse, type FileHashResult, type FileSearchData, type FileSearchParams, type FileSearchResponse, type FileSearchResult, type FrameworkItem, type FrameworkListData, type FrameworkListResponse, type GenreItem, type GenreListData, type GenreListResponse, LightboxClient, type LightboxClientConfig, LightboxError, type MetadataSearchParams, type Pagination, type PaginationParams
|
|
316
|
+
export { type APIError, type APIMetadata, type APIResponse, type AppFile, type AppFilesData, type AppFilesParams, type AppFilesResponse, type AppGetParams, type AppProfile, type AppProfileData, type AppProfileResponse, type AppSearchData, type AppSearchParams, type AppSearchResponse, type AppSummary, type AppVersion, type AppVersionsData, type AppVersionsResponse, type EntitlementItem, type EntitlementListData, type EntitlementListResponse, type FileHashData, type FileHashResponse, type FileHashResult, type FileSearchData, type FileSearchParams, type FileSearchResponse, type FileSearchResult, type FrameworkItem, type FrameworkListData, type FrameworkListResponse, type GenreItem, type GenreListData, type GenreListResponse, LightboxClient, type LightboxClientConfig, LightboxError, type MetadataSearchParams, type Pagination, type PaginationParams };
|
package/dist/index.d.ts
CHANGED
|
@@ -77,7 +77,10 @@ interface AppSummary {
|
|
|
77
77
|
rating: number | null;
|
|
78
78
|
app_store_url: string | null;
|
|
79
79
|
frameworks: string[];
|
|
80
|
-
|
|
80
|
+
entitlements: string[];
|
|
81
|
+
icon: string | null;
|
|
82
|
+
size: number | null;
|
|
83
|
+
min_os_version: string | null;
|
|
81
84
|
created_at: string;
|
|
82
85
|
}
|
|
83
86
|
interface AppProfile {
|
|
@@ -90,9 +93,14 @@ interface AppProfile {
|
|
|
90
93
|
review_count: number | null;
|
|
91
94
|
rating: number | null;
|
|
92
95
|
app_store_url: string | null;
|
|
96
|
+
icon: string | null;
|
|
97
|
+
size: number | null;
|
|
98
|
+
min_os_version: string | null;
|
|
99
|
+
screenshots: string[];
|
|
100
|
+
usage_descriptions: Record<string, string>;
|
|
93
101
|
created_at: string;
|
|
94
102
|
frameworks?: string[];
|
|
95
|
-
|
|
103
|
+
entitlements?: string[];
|
|
96
104
|
privacy?: unknown[];
|
|
97
105
|
urls?: unknown[];
|
|
98
106
|
files?: unknown[];
|
|
@@ -159,7 +167,8 @@ interface FileSearchParams extends PaginationParams {
|
|
|
159
167
|
}
|
|
160
168
|
interface AppSearchParams extends PaginationParams {
|
|
161
169
|
framework?: string;
|
|
162
|
-
|
|
170
|
+
entitlement?: string;
|
|
171
|
+
usage_key?: string;
|
|
163
172
|
genre?: string;
|
|
164
173
|
developer?: string;
|
|
165
174
|
name?: string;
|
|
@@ -185,7 +194,7 @@ interface FrameworkItem {
|
|
|
185
194
|
name: string;
|
|
186
195
|
app_count: number;
|
|
187
196
|
}
|
|
188
|
-
interface
|
|
197
|
+
interface EntitlementItem {
|
|
189
198
|
key: string;
|
|
190
199
|
app_count: number;
|
|
191
200
|
}
|
|
@@ -199,10 +208,10 @@ interface FrameworkListData {
|
|
|
199
208
|
total: number;
|
|
200
209
|
frameworks: FrameworkItem[];
|
|
201
210
|
}
|
|
202
|
-
interface
|
|
203
|
-
type: "
|
|
211
|
+
interface EntitlementListData {
|
|
212
|
+
type: "entitlement_list";
|
|
204
213
|
total: number;
|
|
205
|
-
|
|
214
|
+
entitlements: EntitlementItem[];
|
|
206
215
|
}
|
|
207
216
|
interface MetadataSearchParams extends PaginationParams {
|
|
208
217
|
search?: string;
|
|
@@ -216,7 +225,7 @@ type AppVersionsResponse = APIResponse<AppVersionsData>;
|
|
|
216
225
|
type AppFilesResponse = APIResponse<AppFilesData>;
|
|
217
226
|
type GenreListResponse = APIResponse<GenreListData>;
|
|
218
227
|
type FrameworkListResponse = APIResponse<FrameworkListData>;
|
|
219
|
-
type
|
|
228
|
+
type EntitlementListResponse = APIResponse<EntitlementListData>;
|
|
220
229
|
|
|
221
230
|
interface LightboxClientConfig {
|
|
222
231
|
apiKey: string;
|
|
@@ -255,14 +264,14 @@ declare class LightboxClient {
|
|
|
255
264
|
*/
|
|
256
265
|
apps: {
|
|
257
266
|
/**
|
|
258
|
-
* Search for iOS apps by framework,
|
|
267
|
+
* Search for iOS apps by framework, entitlement, usage_key, genre, developer, name, or bundle.
|
|
259
268
|
* Requires at least one filter parameter.
|
|
260
269
|
*/
|
|
261
270
|
search: (params: AppSearchParams) => Promise<AppSearchResponse>;
|
|
262
271
|
/**
|
|
263
272
|
* Get detailed profile for a specific app bundle.
|
|
264
273
|
* Use `version` param to get a specific version, defaults to latest.
|
|
265
|
-
* Use `include` to specify which fields to include (frameworks,
|
|
274
|
+
* Use `include` to specify which fields to include (frameworks, entitlements, privacy, urls, files, all).
|
|
266
275
|
*/
|
|
267
276
|
get: (bundle: string, params?: AppGetParams) => Promise<AppProfileResponse>;
|
|
268
277
|
/**
|
|
@@ -292,16 +301,16 @@ declare class LightboxClient {
|
|
|
292
301
|
*/
|
|
293
302
|
frameworks: (params?: MetadataSearchParams) => Promise<FrameworkListResponse>;
|
|
294
303
|
/**
|
|
295
|
-
* Get available
|
|
304
|
+
* Get available iOS entitlements with app counts.
|
|
296
305
|
* Supports pagination and search.
|
|
297
|
-
* @param params.search - Filter by
|
|
306
|
+
* @param params.search - Filter by entitlement key (case-insensitive contains)
|
|
298
307
|
* @param params.sort - Sort by 'popularity' (default) or 'name'
|
|
299
308
|
* @param params.limit - Results per page (default 100, max 1000)
|
|
300
309
|
* @param params.offset - Pagination offset
|
|
301
310
|
*/
|
|
302
|
-
|
|
311
|
+
entitlements: (params?: MetadataSearchParams) => Promise<EntitlementListResponse>;
|
|
303
312
|
};
|
|
304
313
|
};
|
|
305
314
|
}
|
|
306
315
|
|
|
307
|
-
export { type APIError, type APIMetadata, type APIResponse, type AppFile, type AppFilesData, type AppFilesParams, type AppFilesResponse, type AppGetParams, type AppProfile, type AppProfileData, type AppProfileResponse, type AppSearchData, type AppSearchParams, type AppSearchResponse, type AppSummary, type AppVersion, type AppVersionsData, type AppVersionsResponse, type FileHashData, type FileHashResponse, type FileHashResult, type FileSearchData, type FileSearchParams, type FileSearchResponse, type FileSearchResult, type FrameworkItem, type FrameworkListData, type FrameworkListResponse, type GenreItem, type GenreListData, type GenreListResponse, LightboxClient, type LightboxClientConfig, LightboxError, type MetadataSearchParams, type Pagination, type PaginationParams
|
|
316
|
+
export { type APIError, type APIMetadata, type APIResponse, type AppFile, type AppFilesData, type AppFilesParams, type AppFilesResponse, type AppGetParams, type AppProfile, type AppProfileData, type AppProfileResponse, type AppSearchData, type AppSearchParams, type AppSearchResponse, type AppSummary, type AppVersion, type AppVersionsData, type AppVersionsResponse, type EntitlementItem, type EntitlementListData, type EntitlementListResponse, type FileHashData, type FileHashResponse, type FileHashResult, type FileSearchData, type FileSearchParams, type FileSearchResponse, type FileSearchResult, type FrameworkItem, type FrameworkListData, type FrameworkListResponse, type GenreItem, type GenreListData, type GenreListResponse, LightboxClient, type LightboxClientConfig, LightboxError, type MetadataSearchParams, type Pagination, type PaginationParams };
|
package/dist/index.js
CHANGED
|
@@ -73,7 +73,7 @@ var LightboxClient = class {
|
|
|
73
73
|
*/
|
|
74
74
|
apps = {
|
|
75
75
|
/**
|
|
76
|
-
* Search for iOS apps by framework,
|
|
76
|
+
* Search for iOS apps by framework, entitlement, usage_key, genre, developer, name, or bundle.
|
|
77
77
|
* Requires at least one filter parameter.
|
|
78
78
|
*/
|
|
79
79
|
search: (params) => {
|
|
@@ -82,7 +82,7 @@ var LightboxClient = class {
|
|
|
82
82
|
/**
|
|
83
83
|
* Get detailed profile for a specific app bundle.
|
|
84
84
|
* Use `version` param to get a specific version, defaults to latest.
|
|
85
|
-
* Use `include` to specify which fields to include (frameworks,
|
|
85
|
+
* Use `include` to specify which fields to include (frameworks, entitlements, privacy, urls, files, all).
|
|
86
86
|
*/
|
|
87
87
|
get: (bundle, params) => {
|
|
88
88
|
const queryParams = {};
|
|
@@ -134,15 +134,15 @@ var LightboxClient = class {
|
|
|
134
134
|
return this.request("/v1/apps/ios/metadata/frameworks", params);
|
|
135
135
|
},
|
|
136
136
|
/**
|
|
137
|
-
* Get available
|
|
137
|
+
* Get available iOS entitlements with app counts.
|
|
138
138
|
* Supports pagination and search.
|
|
139
|
-
* @param params.search - Filter by
|
|
139
|
+
* @param params.search - Filter by entitlement key (case-insensitive contains)
|
|
140
140
|
* @param params.sort - Sort by 'popularity' (default) or 'name'
|
|
141
141
|
* @param params.limit - Results per page (default 100, max 1000)
|
|
142
142
|
* @param params.offset - Pagination offset
|
|
143
143
|
*/
|
|
144
|
-
|
|
145
|
-
return this.request("/v1/apps/ios/metadata/
|
|
144
|
+
entitlements: (params) => {
|
|
145
|
+
return this.request("/v1/apps/ios/metadata/entitlements", params);
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
148
|
};
|