@mcesystems/mdm-client-g4 1.0.78 → 1.0.80

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.
@@ -1,3 +1,73 @@
1
- export { MdmClient, createMDMClient } from "./logic/mdmClient";
2
- export type { GenerateEnrollmentProfileResponse, InstallAppOptions, InstallAppMdmOptions, MdmClientConfig, WaitForDeviceToEnrollResponse, InstallAppResponse, DeviceType, MdmApiCallStatus, } from "./types/mdm";
3
- //# sourceMappingURL=index.d.ts.map
1
+ // Generated by dts-bundle-generator v9.5.1
2
+
3
+ export type MdmApiCallStatus = "OK" | "SERVER_ERROR" | "TIMEOUT" | "UNENROLLED_DEVICE_ID";
4
+ export interface GenerateEnrollmentProfileResponse {
5
+ status: MdmApiCallStatus;
6
+ profile?: string | null;
7
+ }
8
+ export interface WaitForDeviceToEnrollResponse {
9
+ status: MdmApiCallStatus;
10
+ isEnrolled?: boolean | null;
11
+ opRef?: string | null;
12
+ }
13
+ export interface InstallAppResponse {
14
+ status: MdmApiCallStatus;
15
+ opRef?: string | null;
16
+ }
17
+ export interface MdmClientConfig {
18
+ endpoint: string;
19
+ authToken?: string;
20
+ timeout?: number;
21
+ }
22
+ export declare class MdmClient {
23
+ readonly config: MdmClientConfig;
24
+ private client;
25
+ constructor(config: MdmClientConfig);
26
+ generateEnrollmentProfile(deviceId: string): Promise<GenerateEnrollmentProfileResponse>;
27
+ waitForDeviceToEnroll(deviceId: string, previousOpRef?: string): Promise<WaitForDeviceToEnrollResponse>;
28
+ installApp(deviceId: string, options: {
29
+ appId?: string;
30
+ url?: string;
31
+ waitForInstalled?: boolean;
32
+ }): Promise<InstallAppResponse>;
33
+ }
34
+ export declare function createMDMClient(): Promise<MdmClient | undefined>;
35
+ export type DeviceType = "IOS" | "ANDROID";
36
+ type MdmApiCallStatus$1 = "OK" | "SERVER_ERROR" | "TIMEOUT" | "UNENROLLED_DEVICE_ID";
37
+ interface GenerateEnrollmentProfileResponse$1 {
38
+ status: MdmApiCallStatus$1;
39
+ profile?: string | null;
40
+ }
41
+ interface WaitForDeviceToEnrollResponse$1 {
42
+ status: MdmApiCallStatus$1;
43
+ isEnrolled?: boolean | null;
44
+ opRef?: string | null;
45
+ }
46
+ interface InstallAppResponse$1 {
47
+ status: MdmApiCallStatus$1;
48
+ opRef?: string | null;
49
+ }
50
+ interface MdmClientConfig$1 {
51
+ endpoint: string;
52
+ authToken?: string;
53
+ timeout?: number;
54
+ }
55
+ export interface InstallAppMdmOptions {
56
+ appId?: string;
57
+ url?: string;
58
+ waitForInstalled?: boolean;
59
+ }
60
+ export interface InstallAppOptions {
61
+ installViaMdm?: boolean;
62
+ mdm?: InstallAppMdmOptions;
63
+ }
64
+
65
+ export {
66
+ GenerateEnrollmentProfileResponse$1 as GenerateEnrollmentProfileResponse,
67
+ InstallAppResponse$1 as InstallAppResponse,
68
+ MdmApiCallStatus$1 as MdmApiCallStatus,
69
+ MdmClientConfig$1 as MdmClientConfig,
70
+ WaitForDeviceToEnrollResponse$1 as WaitForDeviceToEnrollResponse,
71
+ };
72
+
73
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcesystems/mdm-client-g4",
3
- "version": "1.0.78",
3
+ "version": "1.0.80",
4
4
  "description": "MDM client for device management",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -26,14 +26,15 @@
26
26
  "graphql-request": "^5.2.0",
27
27
  "tsx": "^4.21.0",
28
28
  "uuid": "^13.0.0",
29
- "@mcesystems/auth-g4": "1.0.78",
30
- "@mcesystems/tool-debug-g4": "1.0.78"
29
+ "@mcesystems/auth-g4": "1.0.80",
30
+ "@mcesystems/tool-debug-g4": "1.0.80"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@types/node": "^22.10.2",
34
34
  "@types/plist": "^3.0.5",
35
35
  "cross-env": "^10.1.0",
36
36
  "esbuild": "^0.27.0",
37
+ "esbuild-plugin-d.ts": "^1.3.1",
37
38
  "plist": "^3.1.0",
38
39
  "rimraf": "^6.0.1",
39
40
  "typescript": "^5.7.2"
@@ -43,7 +44,7 @@
43
44
  "README.md"
44
45
  ],
45
46
  "scripts": {
46
- "build": "tsx esbuild.config.mts && tsc --emitDeclarationOnly",
47
+ "build": "tsx esbuild.config.mts",
47
48
  "build:all": "pnpm --filter @mcesystems/mdm-client-g4... build",
48
49
  "check:types": "tsc --noEmit",
49
50
  "clean": "rimraf dist",