@ms-cloudpack/api-server 0.14.4 → 0.15.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.
Files changed (136) hide show
  1. package/lib/apis/addPackageOverride.d.ts +5 -45
  2. package/lib/apis/addPackageOverride.d.ts.map +1 -1
  3. package/lib/apis/addPackageOverride.js +5 -5
  4. package/lib/apis/addPackageOverride.js.map +1 -1
  5. package/lib/apis/ensurePackageBundled.d.ts +5 -52
  6. package/lib/apis/ensurePackageBundled.d.ts.map +1 -1
  7. package/lib/apis/ensurePackageBundled.js +6 -5
  8. package/lib/apis/ensurePackageBundled.js.map +1 -1
  9. package/lib/apis/getData.d.ts +5 -41
  10. package/lib/apis/getData.d.ts.map +1 -1
  11. package/lib/apis/getData.js +4 -4
  12. package/lib/apis/getData.js.map +1 -1
  13. package/lib/apis/getSessionId.d.ts +5 -40
  14. package/lib/apis/getSessionId.d.ts.map +1 -1
  15. package/lib/apis/getSessionId.js +4 -4
  16. package/lib/apis/getSessionId.js.map +1 -1
  17. package/lib/apis/index.d.ts +1 -1
  18. package/lib/apis/index.d.ts.map +1 -1
  19. package/lib/apis/index.js.map +1 -1
  20. package/lib/apis/onDataChanged.d.ts +5 -41
  21. package/lib/apis/onDataChanged.d.ts.map +1 -1
  22. package/lib/apis/onDataChanged.js +4 -4
  23. package/lib/apis/onDataChanged.js.map +1 -1
  24. package/lib/apis/openCodeEditor.d.ts +4 -36
  25. package/lib/apis/openCodeEditor.d.ts.map +1 -1
  26. package/lib/apis/openCodeEditor.js +2 -2
  27. package/lib/apis/openCodeEditor.js.map +1 -1
  28. package/lib/apis/openConfigEditor.d.ts +4 -33
  29. package/lib/apis/openConfigEditor.d.ts.map +1 -1
  30. package/lib/apis/openConfigEditor.js +3 -1
  31. package/lib/apis/openConfigEditor.js.map +1 -1
  32. package/lib/apis/openFilePath.d.ts +4 -36
  33. package/lib/apis/openFilePath.d.ts.map +1 -1
  34. package/lib/apis/openFilePath.js +2 -2
  35. package/lib/apis/openFilePath.js.map +1 -1
  36. package/lib/apis/reportMetric.d.ts +4 -40
  37. package/lib/apis/reportMetric.d.ts.map +1 -1
  38. package/lib/apis/reportMetric.js +4 -3
  39. package/lib/apis/reportMetric.js.map +1 -1
  40. package/lib/apis/syncDownload.d.ts +4 -44
  41. package/lib/apis/syncDownload.d.ts.map +1 -1
  42. package/lib/apis/syncDownload.js +2 -2
  43. package/lib/apis/syncDownload.js.map +1 -1
  44. package/lib/apis/syncUpload.d.ts +4 -50
  45. package/lib/apis/syncUpload.d.ts.map +1 -1
  46. package/lib/apis/syncUpload.js +2 -2
  47. package/lib/apis/syncUpload.js.map +1 -1
  48. package/lib/apis/validatePackageOverride.d.ts +10 -42
  49. package/lib/apis/validatePackageOverride.d.ts.map +1 -1
  50. package/lib/apis/validatePackageOverride.js +3 -4
  51. package/lib/apis/validatePackageOverride.js.map +1 -1
  52. package/lib/apis.d.ts +1 -1
  53. package/lib/apis.d.ts.map +1 -1
  54. package/lib/apis.js.map +1 -1
  55. package/lib/index.d.ts +6 -4
  56. package/lib/index.d.ts.map +1 -1
  57. package/lib/index.js.map +1 -1
  58. package/lib/startApiServer.d.ts +2 -2
  59. package/lib/startApiServer.d.ts.map +1 -1
  60. package/lib/startApiServer.js +2 -2
  61. package/lib/startApiServer.js.map +1 -1
  62. package/lib/trpc/common.d.ts +5 -53
  63. package/lib/trpc/common.d.ts.map +1 -1
  64. package/lib/trpc/common.js +3 -9
  65. package/lib/trpc/common.js.map +1 -1
  66. package/lib/trpc/createAppRouter.d.ts +25 -400
  67. package/lib/trpc/createAppRouter.d.ts.map +1 -1
  68. package/lib/trpc/createCloudpackServer.d.ts +5 -20
  69. package/lib/trpc/createCloudpackServer.d.ts.map +1 -1
  70. package/lib/trpc/createCloudpackServer.js.map +1 -1
  71. package/lib/trpc/createContextFactory.d.ts +6 -22
  72. package/lib/trpc/createContextFactory.d.ts.map +1 -1
  73. package/lib/trpc/createContextFactory.js +4 -4
  74. package/lib/trpc/createContextFactory.js.map +1 -1
  75. package/lib/trpc/createRouterFromApis.d.ts +1 -16
  76. package/lib/trpc/createRouterFromApis.d.ts.map +1 -1
  77. package/lib/types/ApiParams.d.ts +12 -0
  78. package/lib/types/ApiParams.d.ts.map +1 -0
  79. package/lib/types/ApiParams.js +2 -0
  80. package/lib/types/ApiParams.js.map +1 -0
  81. package/lib/types/Context.d.ts +19 -0
  82. package/lib/types/Context.d.ts.map +1 -0
  83. package/lib/types/Context.js +2 -0
  84. package/lib/types/Context.js.map +1 -0
  85. package/lib/types/CreateHtmlFunction.d.ts.map +1 -1
  86. package/lib/types/CreateHtmlFunction.js.map +1 -1
  87. package/lib/types/CreateHtmlOptions.d.ts +7 -4
  88. package/lib/types/CreateHtmlOptions.d.ts.map +1 -1
  89. package/lib/types/CreateHtmlOptions.js.map +1 -1
  90. package/lib/types/CreateHtmlResult.d.ts +8 -1
  91. package/lib/types/CreateHtmlResult.d.ts.map +1 -1
  92. package/lib/types/CreateHtmlResult.js +0 -3
  93. package/lib/types/CreateHtmlResult.js.map +1 -1
  94. package/lib/types/CreateHtmlScript.d.ts.map +1 -1
  95. package/lib/types/CreateHtmlScript.js.map +1 -1
  96. package/lib/utilities/addOverride.d.ts +2 -6
  97. package/lib/utilities/addOverride.d.ts.map +1 -1
  98. package/lib/utilities/addOverride.js +1 -1
  99. package/lib/utilities/addOverride.js.map +1 -1
  100. package/lib/utilities/bundleTask.d.ts +1 -1
  101. package/lib/utilities/bundleTask.d.ts.map +1 -1
  102. package/lib/utilities/bundleTask.js +2 -1
  103. package/lib/utilities/bundleTask.js.map +1 -1
  104. package/lib/utilities/createBundleTask.js +1 -1
  105. package/lib/utilities/createBundleTask.js.map +1 -1
  106. package/lib/utilities/findPackageOverride.d.ts +1 -1
  107. package/lib/utilities/findPackageOverride.d.ts.map +1 -1
  108. package/lib/utilities/findPackageOverride.js.map +1 -1
  109. package/lib/utilities/validateOverride.d.ts +2 -6
  110. package/lib/utilities/validateOverride.d.ts.map +1 -1
  111. package/lib/utilities/validateOverride.js.map +1 -1
  112. package/package.json +3 -3
  113. package/lib/types/BundleResultExtended.d.ts +0 -23
  114. package/lib/types/BundleResultExtended.d.ts.map +0 -1
  115. package/lib/types/BundleResultExtended.js +0 -2
  116. package/lib/types/BundleResultExtended.js.map +0 -1
  117. package/lib/types/DevServer.d.ts +0 -33
  118. package/lib/types/DevServer.d.ts.map +0 -1
  119. package/lib/types/DevServer.js +0 -2
  120. package/lib/types/DevServer.js.map +0 -1
  121. package/lib/types/PackageOverride.d.ts +0 -8
  122. package/lib/types/PackageOverride.d.ts.map +0 -1
  123. package/lib/types/PackageOverride.js +0 -2
  124. package/lib/types/PackageOverride.js.map +0 -1
  125. package/lib/types/Route.d.ts +0 -23
  126. package/lib/types/Route.d.ts.map +0 -1
  127. package/lib/types/Route.js +0 -2
  128. package/lib/types/Route.js.map +0 -1
  129. package/lib/types/SessionStats.d.ts +0 -8
  130. package/lib/types/SessionStats.d.ts.map +0 -1
  131. package/lib/types/SessionStats.js +0 -2
  132. package/lib/types/SessionStats.js.map +0 -1
  133. package/lib/types/TelemetryConfig.d.ts +0 -7
  134. package/lib/types/TelemetryConfig.d.ts.map +0 -1
  135. package/lib/types/TelemetryConfig.js +0 -2
  136. package/lib/types/TelemetryConfig.js.map +0 -1
@@ -1,23 +0,0 @@
1
- import type { BundleResult } from '@ms-cloudpack/bundler-types';
2
- import type { TaskResult } from './TaskResult.js';
3
- export interface BundleResultExtended extends TaskResult, BundleResult {
4
- /**
5
- * The dependencies of the package, computed in `bundleTask` by parsing the output of the bundle result.
6
- */
7
- dependencies?: string[];
8
- /**
9
- * The hash of the bundle input, computed in `bundleTask` by hashing the source input.
10
- */
11
- hash?: string;
12
- /**
13
- * Where the output originates from. In cases where we can leverage disk cache to avoid bundling, we will.
14
- */
15
- from?: 'bundle' | 'cache';
16
- /**
17
- * Whether the input was considered an external package. This affects how cached results
18
- * are leveraged, whether file watching will be used, and how the bundle is retuned to the
19
- * client.
20
- */
21
- isExternal: boolean;
22
- }
23
- //# sourceMappingURL=BundleResultExtended.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BundleResultExtended.d.ts","sourceRoot":"","sources":["../../src/types/BundleResultExtended.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,MAAM,WAAW,oBAAqB,SAAQ,UAAU,EAAE,YAAY;IACpE;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IAExB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;IAE1B;;;;OAIG;IACH,UAAU,EAAE,OAAO,CAAC;CACrB"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=BundleResultExtended.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BundleResultExtended.js","sourceRoot":"","sources":["../../src/types/BundleResultExtended.ts"],"names":[],"mappings":"","sourcesContent":["import type { BundleResult } from '@ms-cloudpack/bundler-types';\nimport type { TaskResult } from './TaskResult.js';\nexport interface BundleResultExtended extends TaskResult, BundleResult {\n /**\n * The dependencies of the package, computed in `bundleTask` by parsing the output of the bundle result.\n */\n dependencies?: string[];\n\n /**\n * The hash of the bundle input, computed in `bundleTask` by hashing the source input.\n */\n hash?: string;\n\n /**\n * Where the output originates from. In cases where we can leverage disk cache to avoid bundling, we will.\n */\n from?: 'bundle' | 'cache';\n\n /**\n * Whether the input was considered an external package. This affects how cached results\n * are leveraged, whether file watching will be used, and how the bundle is retuned to the\n * client.\n */\n isExternal: boolean;\n}\n"]}
@@ -1,33 +0,0 @@
1
- import type { HttpsConfig } from '@ms-cloudpack/create-express-app';
2
- import type { Route } from './Route.js';
3
- export interface DevServer {
4
- /**
5
- * The domain name of the server.
6
- */
7
- domain?: string;
8
- /**
9
- * The ports to be used by the server.
10
- * It can be a number or an array of numbers.
11
- * If ports are provided, an error will be thrown if none are available.
12
- * If no ports are provided, the server will attempt to find an available port.
13
- */
14
- port?: number | number[];
15
- /**
16
- * The config settings for the https server.
17
- * Paths to files are accepted for 'ca', 'cert', 'key', and 'pfx' settings.
18
- * Everything else is passed directly to the https.createServer() method.
19
- * If not provided, the server will use http.
20
- */
21
- https?: HttpsConfig;
22
- /**
23
- * If provided, will override where the publicDir is located, relative to the app package folder.
24
- * Defaults to `./public`. The same thing can be achieved with `routes`, using route: '*' and
25
- * staticPath: './public', so the `publicPath` setting may be removed in the future.
26
- */
27
- publicPath?: string;
28
- /**
29
- * If provided, will register routes with the dev server to host various pages.
30
- */
31
- routes?: Route[];
32
- }
33
- //# sourceMappingURL=DevServer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DevServer.d.ts","sourceRoot":"","sources":["../../src/types/DevServer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAExC,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAEzB;;;;;OAKG;IACH,KAAK,CAAC,EAAE,WAAW,CAAC;IAEpB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC;CAClB"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=DevServer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DevServer.js","sourceRoot":"","sources":["../../src/types/DevServer.ts"],"names":[],"mappings":"","sourcesContent":["import type { HttpsConfig } from '@ms-cloudpack/create-express-app';\nimport type { Route } from './Route.js';\n\nexport interface DevServer {\n /**\n * The domain name of the server.\n */\n domain?: string;\n\n /**\n * The ports to be used by the server.\n * It can be a number or an array of numbers.\n * If ports are provided, an error will be thrown if none are available.\n * If no ports are provided, the server will attempt to find an available port.\n */\n port?: number | number[];\n\n /**\n * The config settings for the https server.\n * Paths to files are accepted for 'ca', 'cert', 'key', and 'pfx' settings.\n * Everything else is passed directly to the https.createServer() method.\n * If not provided, the server will use http.\n */\n https?: HttpsConfig;\n\n /**\n * If provided, will override where the publicDir is located, relative to the app package folder.\n * Defaults to `./public`. The same thing can be achieved with `routes`, using route: '*' and\n * staticPath: './public', so the `publicPath` setting may be removed in the future.\n */\n publicPath?: string;\n\n /**\n * If provided, will register routes with the dev server to host various pages.\n */\n routes?: Route[];\n}\n"]}
@@ -1,8 +0,0 @@
1
- import type { PackageJson } from '@ms-cloudpack/bundler-types';
2
- export interface PackageOverride {
3
- name: string;
4
- versionRequirement: string;
5
- isInternal?: boolean;
6
- overrides: PackageJson;
7
- }
8
- //# sourceMappingURL=PackageOverride.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PackageOverride.d.ts","sourceRoot":"","sources":["../../src/types/PackageOverride.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAE/D,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,kBAAkB,EAAE,MAAM,CAAC;IAC3B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,EAAE,WAAW,CAAC;CACxB"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=PackageOverride.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PackageOverride.js","sourceRoot":"","sources":["../../src/types/PackageOverride.ts"],"names":[],"mappings":"","sourcesContent":["import type { PackageJson } from '@ms-cloudpack/bundler-types';\n\nexport interface PackageOverride {\n name: string;\n versionRequirement: string;\n isInternal?: boolean;\n overrides: PackageJson;\n}\n"]}
@@ -1,23 +0,0 @@
1
- export interface Route {
2
- /**
3
- * The url path part to match. Start paths with a leading slash, e.g. `'/my-route'`. You can also
4
- * use wildcards (`*`), e.g. `'/my-route/*'` to match all paths starting with `'/my-route'`.
5
- */
6
- match: string;
7
- /**
8
- * The path relative to the app root to static assets. If this is provided, renderScript/exportEntry
9
- * will be ignored.
10
- */
11
- staticPath?: string;
12
- /**
13
- * Path to a .js or .html file used for rendering the route. If a script is provided, it must
14
- * export a default function implementing `CreateHtmlFunction` defined in `@ms-cloudpack/cli`.
15
- */
16
- renderScript?: string;
17
- /**
18
- * The key in the exports map which represents the entry point app script for this route.
19
- * Default is '.', meaning the main package export key.
20
- */
21
- exportEntry?: string;
22
- }
23
- //# sourceMappingURL=Route.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Route.d.ts","sourceRoot":"","sources":["../../src/types/Route.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,KAAK;IACpB;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=Route.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Route.js","sourceRoot":"","sources":["../../src/types/Route.ts"],"names":[],"mappings":"","sourcesContent":["export interface Route {\n /**\n * The url path part to match. Start paths with a leading slash, e.g. `'/my-route'`. You can also\n * use wildcards (`*`), e.g. `'/my-route/*'` to match all paths starting with `'/my-route'`.\n */\n match: string;\n\n /**\n * The path relative to the app root to static assets. If this is provided, renderScript/exportEntry\n * will be ignored.\n */\n staticPath?: string;\n\n /**\n * Path to a .js or .html file used for rendering the route. If a script is provided, it must\n * export a default function implementing `CreateHtmlFunction` defined in `@ms-cloudpack/cli`.\n */\n renderScript?: string;\n\n /**\n * The key in the exports map which represents the entry point app script for this route.\n * Default is '.', meaning the main package export key.\n */\n exportEntry?: string;\n}\n"]}
@@ -1,8 +0,0 @@
1
- export interface SessionStats {
2
- status: 'idle' | 'pending';
3
- remainingTasks: number;
4
- totalTasks: number;
5
- totalErrors: number;
6
- totalWarnings: number;
7
- }
8
- //# sourceMappingURL=SessionStats.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SessionStats.d.ts","sourceRoot":"","sources":["../../src/types/SessionStats.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAE3B,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IAEnB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;CACvB"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=SessionStats.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SessionStats.js","sourceRoot":"","sources":["../../src/types/SessionStats.ts"],"names":[],"mappings":"","sourcesContent":["export interface SessionStats {\n status: 'idle' | 'pending';\n\n remainingTasks: number;\n totalTasks: number;\n\n totalErrors: number;\n totalWarnings: number;\n}\n"]}
@@ -1,7 +0,0 @@
1
- export interface TelemetryConfig {
2
- /**
3
- * Application Insights instrumentation key.
4
- */
5
- instrumentationKey: string;
6
- }
7
- //# sourceMappingURL=TelemetryConfig.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TelemetryConfig.d.ts","sourceRoot":"","sources":["../../src/types/TelemetryConfig.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;CAC5B"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=TelemetryConfig.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TelemetryConfig.js","sourceRoot":"","sources":["../../src/types/TelemetryConfig.ts"],"names":[],"mappings":"","sourcesContent":["export interface TelemetryConfig {\n /**\n * Application Insights instrumentation key.\n */\n instrumentationKey: string;\n}\n"]}