@capgo/cli 7.86.0 → 7.87.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/dist/index.js +324 -324
- package/dist/package.json +1 -1
- package/dist/src/api/app.d.ts +3 -0
- package/dist/src/api/channels.d.ts +24 -0
- package/dist/src/app/list.d.ts +8 -0
- package/dist/src/sdk.js +168 -168
- package/dist/src/types/supabase.types.d.ts +12 -0
- package/dist/src/utils.d.ts +22 -5
- package/package.json +1 -1
package/dist/package.json
CHANGED
package/dist/src/api/app.d.ts
CHANGED
|
@@ -2,6 +2,9 @@ import type { SupabaseClient } from '@supabase/supabase-js';
|
|
|
2
2
|
import type { Database } from '../types/supabase.types';
|
|
3
3
|
import { OrganizationPerm } from '../utils';
|
|
4
4
|
export declare function checkAppExists(supabase: SupabaseClient<Database>, appid: string): Promise<boolean>;
|
|
5
|
+
export type PendingOnboardingApp = Pick<Database['public']['Tables']['apps']['Row'], 'app_id' | 'name' | 'icon_url' | 'need_onboarding' | 'existing_app' | 'ios_store_url' | 'android_store_url'>;
|
|
6
|
+
export declare function listPendingOnboardingApps(supabase: SupabaseClient<Database>, orgId: string): Promise<PendingOnboardingApp[]>;
|
|
7
|
+
export declare function completePendingOnboardingApp(supabase: SupabaseClient<Database>, orgId: string, appId: string): Promise<void>;
|
|
5
8
|
/**
|
|
6
9
|
* Check multiple app IDs at once for batch validation (e.g., for suggestions)
|
|
7
10
|
*/
|
|
@@ -277,15 +277,19 @@ export declare function findChannelDevices(supabase: SupabaseClient<Database>, a
|
|
|
277
277
|
};
|
|
278
278
|
apps: {
|
|
279
279
|
Row: {
|
|
280
|
+
android_store_url: string | null;
|
|
280
281
|
app_id: string;
|
|
281
282
|
channel_device_count: number;
|
|
282
283
|
created_at: string | null;
|
|
283
284
|
default_upload_channel: string;
|
|
285
|
+
existing_app: boolean;
|
|
284
286
|
expose_metadata: boolean;
|
|
285
287
|
icon_url: string;
|
|
286
288
|
id: string | null;
|
|
289
|
+
ios_store_url: string | null;
|
|
287
290
|
last_version: string | null;
|
|
288
291
|
manifest_bundle_count: number;
|
|
292
|
+
need_onboarding: boolean;
|
|
289
293
|
name: string | null;
|
|
290
294
|
owner_org: string;
|
|
291
295
|
retention: number;
|
|
@@ -294,15 +298,19 @@ export declare function findChannelDevices(supabase: SupabaseClient<Database>, a
|
|
|
294
298
|
user_id: string | null;
|
|
295
299
|
};
|
|
296
300
|
Insert: {
|
|
301
|
+
android_store_url?: string | null;
|
|
297
302
|
app_id: string;
|
|
298
303
|
channel_device_count?: number;
|
|
299
304
|
created_at?: string | null;
|
|
300
305
|
default_upload_channel?: string;
|
|
306
|
+
existing_app?: boolean;
|
|
301
307
|
expose_metadata?: boolean;
|
|
302
308
|
icon_url: string;
|
|
303
309
|
id?: string | null;
|
|
310
|
+
ios_store_url?: string | null;
|
|
304
311
|
last_version?: string | null;
|
|
305
312
|
manifest_bundle_count?: number;
|
|
313
|
+
need_onboarding?: boolean;
|
|
306
314
|
name?: string | null;
|
|
307
315
|
owner_org: string;
|
|
308
316
|
retention?: number;
|
|
@@ -311,15 +319,19 @@ export declare function findChannelDevices(supabase: SupabaseClient<Database>, a
|
|
|
311
319
|
user_id?: string | null;
|
|
312
320
|
};
|
|
313
321
|
Update: {
|
|
322
|
+
android_store_url?: string | null;
|
|
314
323
|
app_id?: string;
|
|
315
324
|
channel_device_count?: number;
|
|
316
325
|
created_at?: string | null;
|
|
317
326
|
default_upload_channel?: string;
|
|
327
|
+
existing_app?: boolean;
|
|
318
328
|
expose_metadata?: boolean;
|
|
319
329
|
icon_url?: string;
|
|
320
330
|
id?: string | null;
|
|
331
|
+
ios_store_url?: string | null;
|
|
321
332
|
last_version?: string | null;
|
|
322
333
|
manifest_bundle_count?: number;
|
|
334
|
+
need_onboarding?: boolean;
|
|
323
335
|
name?: string | null;
|
|
324
336
|
owner_org?: string;
|
|
325
337
|
retention?: number;
|
|
@@ -3747,15 +3759,19 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
|
|
|
3747
3759
|
};
|
|
3748
3760
|
apps: {
|
|
3749
3761
|
Row: {
|
|
3762
|
+
android_store_url: string | null;
|
|
3750
3763
|
app_id: string;
|
|
3751
3764
|
channel_device_count: number;
|
|
3752
3765
|
created_at: string | null;
|
|
3753
3766
|
default_upload_channel: string;
|
|
3767
|
+
existing_app: boolean;
|
|
3754
3768
|
expose_metadata: boolean;
|
|
3755
3769
|
icon_url: string;
|
|
3756
3770
|
id: string | null;
|
|
3771
|
+
ios_store_url: string | null;
|
|
3757
3772
|
last_version: string | null;
|
|
3758
3773
|
manifest_bundle_count: number;
|
|
3774
|
+
need_onboarding: boolean;
|
|
3759
3775
|
name: string | null;
|
|
3760
3776
|
owner_org: string;
|
|
3761
3777
|
retention: number;
|
|
@@ -3764,15 +3780,19 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
|
|
|
3764
3780
|
user_id: string | null;
|
|
3765
3781
|
};
|
|
3766
3782
|
Insert: {
|
|
3783
|
+
android_store_url?: string | null;
|
|
3767
3784
|
app_id: string;
|
|
3768
3785
|
channel_device_count?: number;
|
|
3769
3786
|
created_at?: string | null;
|
|
3770
3787
|
default_upload_channel?: string;
|
|
3788
|
+
existing_app?: boolean;
|
|
3771
3789
|
expose_metadata?: boolean;
|
|
3772
3790
|
icon_url: string;
|
|
3773
3791
|
id?: string | null;
|
|
3792
|
+
ios_store_url?: string | null;
|
|
3774
3793
|
last_version?: string | null;
|
|
3775
3794
|
manifest_bundle_count?: number;
|
|
3795
|
+
need_onboarding?: boolean;
|
|
3776
3796
|
name?: string | null;
|
|
3777
3797
|
owner_org: string;
|
|
3778
3798
|
retention?: number;
|
|
@@ -3781,15 +3801,19 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
|
|
|
3781
3801
|
user_id?: string | null;
|
|
3782
3802
|
};
|
|
3783
3803
|
Update: {
|
|
3804
|
+
android_store_url?: string | null;
|
|
3784
3805
|
app_id?: string;
|
|
3785
3806
|
channel_device_count?: number;
|
|
3786
3807
|
created_at?: string | null;
|
|
3787
3808
|
default_upload_channel?: string;
|
|
3809
|
+
existing_app?: boolean;
|
|
3788
3810
|
expose_metadata?: boolean;
|
|
3789
3811
|
icon_url?: string;
|
|
3790
3812
|
id?: string | null;
|
|
3813
|
+
ios_store_url?: string | null;
|
|
3791
3814
|
last_version?: string | null;
|
|
3792
3815
|
manifest_bundle_count?: number;
|
|
3816
|
+
need_onboarding?: boolean;
|
|
3793
3817
|
name?: string | null;
|
|
3794
3818
|
owner_org?: string;
|
|
3795
3819
|
retention?: number;
|
package/dist/src/app/list.d.ts
CHANGED
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
import type { OptionsBase } from '../schemas/base';
|
|
2
2
|
export declare function listAppInternal(options: OptionsBase, silent?: boolean): Promise<{
|
|
3
|
+
android_store_url: string | null;
|
|
3
4
|
app_id: string;
|
|
4
5
|
channel_device_count: number;
|
|
5
6
|
created_at: string | null;
|
|
6
7
|
default_upload_channel: string;
|
|
8
|
+
existing_app: boolean;
|
|
7
9
|
expose_metadata: boolean;
|
|
8
10
|
icon_url: string;
|
|
9
11
|
id: string | null;
|
|
12
|
+
ios_store_url: string | null;
|
|
10
13
|
last_version: string | null;
|
|
11
14
|
manifest_bundle_count: number;
|
|
15
|
+
need_onboarding: boolean;
|
|
12
16
|
name: string | null;
|
|
13
17
|
owner_org: string;
|
|
14
18
|
retention: number;
|
|
@@ -17,15 +21,19 @@ export declare function listAppInternal(options: OptionsBase, silent?: boolean):
|
|
|
17
21
|
user_id: string | null;
|
|
18
22
|
}[]>;
|
|
19
23
|
export declare function listApp(options: OptionsBase): Promise<{
|
|
24
|
+
android_store_url: string | null;
|
|
20
25
|
app_id: string;
|
|
21
26
|
channel_device_count: number;
|
|
22
27
|
created_at: string | null;
|
|
23
28
|
default_upload_channel: string;
|
|
29
|
+
existing_app: boolean;
|
|
24
30
|
expose_metadata: boolean;
|
|
25
31
|
icon_url: string;
|
|
26
32
|
id: string | null;
|
|
33
|
+
ios_store_url: string | null;
|
|
27
34
|
last_version: string | null;
|
|
28
35
|
manifest_bundle_count: number;
|
|
36
|
+
need_onboarding: boolean;
|
|
29
37
|
name: string | null;
|
|
30
38
|
owner_org: string;
|
|
31
39
|
retention: number;
|