@apps-in-toss/framework 0.0.0-dev.1741346821380 → 0.0.0-dev.1741598175595

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.
@@ -49,4 +49,35 @@ interface AppsInTossPluginOptions {
49
49
  }
50
50
  declare function appsInToss(options: AppsInTossPluginOptions): (BedrockPluginCore | Promise<BedrockPluginCore>)[];
51
51
 
52
- export { type AppManifest, type AppsInTossPluginOptions, type OAuthScope, type Permission, appsInToss };
52
+ interface CompileHbcOptions {
53
+ outdir: string;
54
+ filePath: string;
55
+ }
56
+ type CompileHbcFunc = (options: CompileHbcOptions) => Promise<{
57
+ outfile: string;
58
+ }>;
59
+
60
+ interface CreateCompressedBytecodeDependencies {
61
+ compileHbcFn: CompileHbcFunc;
62
+ }
63
+
64
+ type BuildResult = {
65
+ jsFile: string;
66
+ platform: 'ios' | 'android';
67
+ };
68
+ interface CreateArtifactOptions {
69
+ inputJsFiles: {
70
+ path: string;
71
+ platform: 'ios' | 'android';
72
+ }[];
73
+ appJsonPath: string;
74
+ outfile: string;
75
+ deploymentId: string;
76
+ additionalFilesToZip?: {
77
+ path: string;
78
+ name: string;
79
+ }[];
80
+ }
81
+ declare function createArtifact(options: CreateArtifactOptions, deps: CreateCompressedBytecodeDependencies): Promise<string>;
82
+
83
+ export { type AppManifest, type AppsInTossPluginOptions, type BuildResult, type CreateArtifactOptions, type OAuthScope, type Permission, appsInToss, createArtifact };
@@ -49,4 +49,35 @@ interface AppsInTossPluginOptions {
49
49
  }
50
50
  declare function appsInToss(options: AppsInTossPluginOptions): (BedrockPluginCore | Promise<BedrockPluginCore>)[];
51
51
 
52
- export { type AppManifest, type AppsInTossPluginOptions, type OAuthScope, type Permission, appsInToss };
52
+ interface CompileHbcOptions {
53
+ outdir: string;
54
+ filePath: string;
55
+ }
56
+ type CompileHbcFunc = (options: CompileHbcOptions) => Promise<{
57
+ outfile: string;
58
+ }>;
59
+
60
+ interface CreateCompressedBytecodeDependencies {
61
+ compileHbcFn: CompileHbcFunc;
62
+ }
63
+
64
+ type BuildResult = {
65
+ jsFile: string;
66
+ platform: 'ios' | 'android';
67
+ };
68
+ interface CreateArtifactOptions {
69
+ inputJsFiles: {
70
+ path: string;
71
+ platform: 'ios' | 'android';
72
+ }[];
73
+ appJsonPath: string;
74
+ outfile: string;
75
+ deploymentId: string;
76
+ additionalFilesToZip?: {
77
+ path: string;
78
+ name: string;
79
+ }[];
80
+ }
81
+ declare function createArtifact(options: CreateArtifactOptions, deps: CreateCompressedBytecodeDependencies): Promise<string>;
82
+
83
+ export { type AppManifest, type AppsInTossPluginOptions, type BuildResult, type CreateArtifactOptions, type OAuthScope, type Permission, appsInToss, createArtifact };