cloud-ide-lms-model 1.1.20 → 1.1.22

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.
@@ -17,6 +17,7 @@ type IFinancialYearMappingToggleStatusErrorLogger = {
17
17
  [key in keyof MFinancialYearMappingToggleStatusPayload]: string;
18
18
  };
19
19
  declare class MFinancialYearMapping extends MTableQueries {
20
+ accfymp_financial_year_id_accyr?: string;
20
21
  constructor(init: MFinancialYearMapping);
21
22
  Validate?(): Partial<IFinancialYearMappingErrorLogger>;
22
23
  }
@@ -0,0 +1,59 @@
1
+ import { MTableQueries, MRequestMiddelware } from "../../common-types/common";
2
+ import { IAppRolloutConfigMst } from "../../schema/app/app_rollout_config_mst";
3
+ import { controllerResponse } from "../../utilities";
4
+ type IAppRolloutConfigErrorLogger = {
5
+ [key in keyof MAppRolloutConfig]: string;
6
+ };
7
+ type IAppRolloutConfigGetByIdErrorLogger = {
8
+ [key in keyof MAppRolloutConfigGetByIdPayload]: string;
9
+ };
10
+ type IAppRolloutConfigInsertUpdateErrorLogger = {
11
+ [key in keyof MAppRolloutConfigInsertUpdatePayload]: string;
12
+ };
13
+ declare class MAppRolloutConfig extends MTableQueries {
14
+ approll_id?: string;
15
+ approll_version_id_appver?: string;
16
+ query?: string;
17
+ constructor(init: MAppRolloutConfig);
18
+ Validate?(): Partial<IAppRolloutConfigErrorLogger>;
19
+ }
20
+ declare class MAppRolloutConfigGetByIdPayload implements MRequestMiddelware {
21
+ approll_id?: string;
22
+ _id?: string;
23
+ constructor(init: MAppRolloutConfigGetByIdPayload);
24
+ Validate?(): Partial<IAppRolloutConfigGetByIdErrorLogger>;
25
+ }
26
+ declare class MAppRolloutConfigInsertUpdatePayload implements IAppRolloutConfigMst, MRequestMiddelware {
27
+ _id?: string;
28
+ approll_version_id_appver?: string;
29
+ approll_rollout_phases?: Array<{
30
+ phase_number?: number;
31
+ percentage?: number;
32
+ rollout_percentage?: number;
33
+ start_date?: Date;
34
+ end_date?: Date;
35
+ phase_status_id_sygms?: string;
36
+ criteria?: Record<string, unknown>;
37
+ }>;
38
+ approll_rollout_criteria?: Record<string, unknown>;
39
+ approll_auto_advance?: boolean;
40
+ approll_created_by_id_auth?: string;
41
+ approll_created_at?: Date;
42
+ approll_updated_at?: Date;
43
+ constructor(init: Partial<IAppRolloutConfigMst> & {
44
+ _id?: string;
45
+ });
46
+ Validate?(): Partial<IAppRolloutConfigInsertUpdateErrorLogger>;
47
+ }
48
+ interface appRolloutConfigControllerResponse extends controllerResponse {
49
+ data?: any[] | any | null;
50
+ total?: number;
51
+ totalDocument?: number;
52
+ }
53
+ interface appRolloutConfigByIdControllerResponse extends controllerResponse {
54
+ data?: any | null;
55
+ }
56
+ interface appRolloutConfigInsertUpdateControllerResponse extends controllerResponse {
57
+ data?: any | null;
58
+ }
59
+ export { MAppRolloutConfig, MAppRolloutConfigGetByIdPayload, MAppRolloutConfigInsertUpdatePayload, appRolloutConfigControllerResponse, appRolloutConfigByIdControllerResponse, appRolloutConfigInsertUpdateControllerResponse };
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MAppRolloutConfigInsertUpdatePayload = exports.MAppRolloutConfigGetByIdPayload = exports.MAppRolloutConfig = void 0;
4
+ const common_1 = require("../../common-types/common");
5
+ /* INTERFACE END */
6
+ /* MODEL START */
7
+ class MAppRolloutConfig extends common_1.MTableQueries {
8
+ constructor(init) {
9
+ super(init);
10
+ Object.assign(this, init);
11
+ }
12
+ Validate() {
13
+ let errorLogger = {};
14
+ return errorLogger;
15
+ }
16
+ }
17
+ exports.MAppRolloutConfig = MAppRolloutConfig;
18
+ class MAppRolloutConfigGetByIdPayload {
19
+ constructor(init) {
20
+ Object.assign(this, init);
21
+ }
22
+ Validate() {
23
+ let errorLogger = {};
24
+ if (!this.approll_id && !this._id) {
25
+ errorLogger.approll_id = "App Rollout Config ID is Required!";
26
+ }
27
+ return errorLogger;
28
+ }
29
+ }
30
+ exports.MAppRolloutConfigGetByIdPayload = MAppRolloutConfigGetByIdPayload;
31
+ class MAppRolloutConfigInsertUpdatePayload {
32
+ constructor(init) {
33
+ Object.assign(this, init);
34
+ }
35
+ Validate() {
36
+ let errorLogger = {};
37
+ return errorLogger;
38
+ }
39
+ }
40
+ exports.MAppRolloutConfigInsertUpdatePayload = MAppRolloutConfigInsertUpdatePayload;
@@ -0,0 +1,57 @@
1
+ import { MTableQueries, MRequestMiddelware } from "../../common-types/common";
2
+ import { IAppUpdateStatisticsMst } from "../../schema/app/app_update_statistics_mst";
3
+ import { controllerResponse } from "../../utilities";
4
+ type IAppStatisticsErrorLogger = {
5
+ [key in keyof MAppStatistics]: string;
6
+ };
7
+ type IAppStatisticsGetByIdErrorLogger = {
8
+ [key in keyof MAppStatisticsGetByIdPayload]: string;
9
+ };
10
+ type IAppStatisticsInsertUpdateErrorLogger = {
11
+ [key in keyof MAppStatisticsInsertUpdatePayload]: string;
12
+ };
13
+ declare class MAppStatistics extends MTableQueries {
14
+ appstat_id?: string;
15
+ appstat_version_id_appver?: string;
16
+ query?: string;
17
+ constructor(init: MAppStatistics);
18
+ Validate?(): Partial<IAppStatisticsErrorLogger>;
19
+ }
20
+ declare class MAppStatisticsGetByIdPayload implements MRequestMiddelware {
21
+ appstat_id?: string;
22
+ _id?: string;
23
+ constructor(init: MAppStatisticsGetByIdPayload);
24
+ Validate?(): Partial<IAppStatisticsGetByIdErrorLogger>;
25
+ }
26
+ declare class MAppStatisticsInsertUpdatePayload implements IAppUpdateStatisticsMst, MRequestMiddelware {
27
+ _id?: string;
28
+ appstat_version_id_appver?: string;
29
+ appstat_stat_date?: Date;
30
+ appstat_total_users?: number;
31
+ appstat_users_on_version?: number;
32
+ appstat_users_updated?: number;
33
+ appstat_users_failed?: number;
34
+ appstat_success_rate?: number;
35
+ appstat_avg_update_time?: number;
36
+ appstat_download_count?: number;
37
+ appstat_install_count?: number;
38
+ appstat_rollback_count?: number;
39
+ appstat_created_at?: Date;
40
+ appstat_updated_at?: Date;
41
+ constructor(init: Partial<IAppUpdateStatisticsMst> & {
42
+ _id?: string;
43
+ });
44
+ Validate?(): Partial<IAppStatisticsInsertUpdateErrorLogger>;
45
+ }
46
+ interface appStatisticsControllerResponse extends controllerResponse {
47
+ data?: any[] | any | null;
48
+ total?: number;
49
+ totalDocument?: number;
50
+ }
51
+ interface appStatisticsByIdControllerResponse extends controllerResponse {
52
+ data?: any | null;
53
+ }
54
+ interface appStatisticsInsertUpdateControllerResponse extends controllerResponse {
55
+ data?: any | null;
56
+ }
57
+ export { MAppStatistics, MAppStatisticsGetByIdPayload, MAppStatisticsInsertUpdatePayload, appStatisticsControllerResponse, appStatisticsByIdControllerResponse, appStatisticsInsertUpdateControllerResponse };
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MAppStatisticsInsertUpdatePayload = exports.MAppStatisticsGetByIdPayload = exports.MAppStatistics = void 0;
4
+ const common_1 = require("../../common-types/common");
5
+ /* INTERFACE END */
6
+ /* MODEL START */
7
+ class MAppStatistics extends common_1.MTableQueries {
8
+ constructor(init) {
9
+ super(init);
10
+ Object.assign(this, init);
11
+ }
12
+ Validate() {
13
+ let errorLogger = {};
14
+ return errorLogger;
15
+ }
16
+ }
17
+ exports.MAppStatistics = MAppStatistics;
18
+ class MAppStatisticsGetByIdPayload {
19
+ constructor(init) {
20
+ Object.assign(this, init);
21
+ }
22
+ Validate() {
23
+ let errorLogger = {};
24
+ if (!this.appstat_id && !this._id) {
25
+ errorLogger.appstat_id = "App Statistics ID is Required!";
26
+ }
27
+ return errorLogger;
28
+ }
29
+ }
30
+ exports.MAppStatisticsGetByIdPayload = MAppStatisticsGetByIdPayload;
31
+ class MAppStatisticsInsertUpdatePayload {
32
+ constructor(init) {
33
+ Object.assign(this, init);
34
+ }
35
+ Validate() {
36
+ let errorLogger = {};
37
+ return errorLogger;
38
+ }
39
+ }
40
+ exports.MAppStatisticsInsertUpdatePayload = MAppStatisticsInsertUpdatePayload;
@@ -0,0 +1,63 @@
1
+ import { MTableQueries, MRequestMiddelware } from "../../common-types/common";
2
+ import { IAppUserUpdateStatusMst } from "../../schema/app/app_user_update_status_mst";
3
+ import { controllerResponse } from "../../utilities";
4
+ type IAppUserUpdateStatusErrorLogger = {
5
+ [key in keyof MAppUserUpdateStatus]: string;
6
+ };
7
+ type IAppUserUpdateStatusGetByIdErrorLogger = {
8
+ [key in keyof MAppUserUpdateStatusGetByIdPayload]: string;
9
+ };
10
+ type IAppUserUpdateStatusInsertUpdateErrorLogger = {
11
+ [key in keyof MAppUserUpdateStatusInsertUpdatePayload]: string;
12
+ };
13
+ declare class MAppUserUpdateStatus extends MTableQueries {
14
+ appust_id?: string;
15
+ appust_reg_id_appreg?: string;
16
+ appust_user_id_auth?: string;
17
+ appust_device_id?: string;
18
+ appust_platform_id_sygms?: string;
19
+ appust_update_status_id_sygms?: string;
20
+ query?: string;
21
+ constructor(init: MAppUserUpdateStatus);
22
+ Validate?(): Partial<IAppUserUpdateStatusErrorLogger>;
23
+ }
24
+ declare class MAppUserUpdateStatusGetByIdPayload implements MRequestMiddelware {
25
+ appust_id?: string;
26
+ _id?: string;
27
+ constructor(init: MAppUserUpdateStatusGetByIdPayload);
28
+ Validate?(): Partial<IAppUserUpdateStatusGetByIdErrorLogger>;
29
+ }
30
+ declare class MAppUserUpdateStatusInsertUpdatePayload implements IAppUserUpdateStatusMst, MRequestMiddelware {
31
+ _id?: string;
32
+ appust_reg_id_appreg?: string;
33
+ appust_user_id_auth?: string;
34
+ appust_device_id?: string;
35
+ appust_current_version?: string;
36
+ appust_current_version_code?: number;
37
+ appust_platform_id_sygms?: string;
38
+ appust_last_update_check?: Date;
39
+ appust_last_update_attempt?: Date;
40
+ appust_last_update_success?: Date;
41
+ appust_last_update_error?: string;
42
+ appust_update_status_id_sygms?: string;
43
+ appust_auto_update_enabled?: boolean;
44
+ appust_device_info?: Record<string, unknown>;
45
+ appust_created_at?: Date;
46
+ appust_updated_at?: Date;
47
+ constructor(init: Partial<IAppUserUpdateStatusMst> & {
48
+ _id?: string;
49
+ });
50
+ Validate?(): Partial<IAppUserUpdateStatusInsertUpdateErrorLogger>;
51
+ }
52
+ interface appUserUpdateStatusControllerResponse extends controllerResponse {
53
+ data?: any[] | any | null;
54
+ total?: number;
55
+ totalDocument?: number;
56
+ }
57
+ interface appUserUpdateStatusByIdControllerResponse extends controllerResponse {
58
+ data?: any | null;
59
+ }
60
+ interface appUserUpdateStatusInsertUpdateControllerResponse extends controllerResponse {
61
+ data?: any | null;
62
+ }
63
+ export { MAppUserUpdateStatus, MAppUserUpdateStatusGetByIdPayload, MAppUserUpdateStatusInsertUpdatePayload, appUserUpdateStatusControllerResponse, appUserUpdateStatusByIdControllerResponse, appUserUpdateStatusInsertUpdateControllerResponse };
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MAppUserUpdateStatusInsertUpdatePayload = exports.MAppUserUpdateStatusGetByIdPayload = exports.MAppUserUpdateStatus = void 0;
4
+ const common_1 = require("../../common-types/common");
5
+ /* INTERFACE END */
6
+ /* MODEL START */
7
+ class MAppUserUpdateStatus extends common_1.MTableQueries {
8
+ constructor(init) {
9
+ super(init);
10
+ Object.assign(this, init);
11
+ }
12
+ Validate() {
13
+ let errorLogger = {};
14
+ return errorLogger;
15
+ }
16
+ }
17
+ exports.MAppUserUpdateStatus = MAppUserUpdateStatus;
18
+ class MAppUserUpdateStatusGetByIdPayload {
19
+ constructor(init) {
20
+ Object.assign(this, init);
21
+ }
22
+ Validate() {
23
+ let errorLogger = {};
24
+ if (!this.appust_id && !this._id) {
25
+ errorLogger.appust_id = "App User Update Status ID is Required!";
26
+ }
27
+ return errorLogger;
28
+ }
29
+ }
30
+ exports.MAppUserUpdateStatusGetByIdPayload = MAppUserUpdateStatusGetByIdPayload;
31
+ class MAppUserUpdateStatusInsertUpdatePayload {
32
+ constructor(init) {
33
+ Object.assign(this, init);
34
+ }
35
+ Validate() {
36
+ let errorLogger = {};
37
+ return errorLogger;
38
+ }
39
+ }
40
+ exports.MAppUserUpdateStatusInsertUpdatePayload = MAppUserUpdateStatusInsertUpdatePayload;
@@ -7,3 +7,6 @@ export * from './app-store-provider.model';
7
7
  export * from './app-deployment.model';
8
8
  export * from './app-build-config.model';
9
9
  export * from './app-changelog.model';
10
+ export * from './app-user-update-status.model';
11
+ export * from './app-statistics.model';
12
+ export * from './app-rollout-config.model';
@@ -23,3 +23,6 @@ __exportStar(require("./app-store-provider.model"), exports);
23
23
  __exportStar(require("./app-deployment.model"), exports);
24
24
  __exportStar(require("./app-build-config.model"), exports);
25
25
  __exportStar(require("./app-changelog.model"), exports);
26
+ __exportStar(require("./app-user-update-status.model"), exports);
27
+ __exportStar(require("./app-statistics.model"), exports);
28
+ __exportStar(require("./app-rollout-config.model"), exports);
@@ -41,24 +41,28 @@ declare const appRoutesUrl: {
41
41
  */
42
42
  appStatistics: string;
43
43
  /**
44
- * Endpoint for app updates check (updates/check) - public endpoint for mobile apps
44
+ * Endpoint for OTA update check (ota/check-update) - public endpoint for mobile apps
45
45
  */
46
- appUpdatesCheck: string;
46
+ appOtaCheckUpdate: string;
47
47
  /**
48
- * Endpoint for app updates download (updates/download) - public endpoint for mobile apps
48
+ * Endpoint for OTA update success recording (ota/record-success) - public endpoint for mobile apps
49
49
  */
50
- appUpdatesDownload: string;
50
+ appOtaRecordSuccess: string;
51
51
  /**
52
- * Endpoint for app updates status (updates/status) - public endpoint for mobile apps
52
+ * Endpoint for OTA update failure recording (ota/record-failure) - public endpoint for mobile apps
53
53
  */
54
- appUpdatesStatus: string;
54
+ appOtaRecordFailure: string;
55
55
  /**
56
- * Endpoint for platform API integration (platform-api)
56
+ * Endpoint for app registration starts (app-registration-starts)
57
57
  */
58
- platformApiIntegration: string;
58
+ appRegistrationStart: string;
59
59
  /**
60
- * Endpoint for platform deployment (platform-deployment)
60
+ * Endpoint for app rollout configs (app-rollout-configs)
61
61
  */
62
- platformDeployment: string;
62
+ appRolloutConfig: string;
63
+ /**
64
+ * Endpoint for app user update status (app-user-update-status)
65
+ */
66
+ appUserUpdateStatus: string;
63
67
  };
64
68
  export { appRoutesUrl };
@@ -44,25 +44,29 @@ const appRoutesUrl = {
44
44
  */
45
45
  appStatistics: 'app-statistics',
46
46
  /**
47
- * Endpoint for app updates check (updates/check) - public endpoint for mobile apps
47
+ * Endpoint for OTA update check (ota/check-update) - public endpoint for mobile apps
48
48
  */
49
- appUpdatesCheck: 'updates/check',
49
+ appOtaCheckUpdate: 'ota/check-update',
50
50
  /**
51
- * Endpoint for app updates download (updates/download) - public endpoint for mobile apps
51
+ * Endpoint for OTA update success recording (ota/record-success) - public endpoint for mobile apps
52
52
  */
53
- appUpdatesDownload: 'updates/download',
53
+ appOtaRecordSuccess: 'ota/record-success',
54
54
  /**
55
- * Endpoint for app updates status (updates/status) - public endpoint for mobile apps
55
+ * Endpoint for OTA update failure recording (ota/record-failure) - public endpoint for mobile apps
56
56
  */
57
- appUpdatesStatus: 'updates/status',
57
+ appOtaRecordFailure: 'ota/record-failure',
58
58
  /**
59
- * Endpoint for platform API integration (platform-api)
59
+ * Endpoint for app registration starts (app-registration-starts)
60
60
  */
61
- platformApiIntegration: 'platform-api',
61
+ appRegistrationStart: 'app-registration-starts',
62
62
  /**
63
- * Endpoint for platform deployment (platform-deployment)
63
+ * Endpoint for app rollout configs (app-rollout-configs)
64
64
  */
65
- platformDeployment: 'platform-deployment'
65
+ appRolloutConfig: 'app-rollout-configs',
66
+ /**
67
+ * Endpoint for app user update status (app-user-update-status)
68
+ */
69
+ appUserUpdateStatus: 'app-user-update-status'
66
70
  };
67
71
  exports.appRoutesUrl = appRoutesUrl;
68
72
  // Freeze the appRoutesUrl object to prevent modifications
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "typescript": "^5.4.2"
4
4
  },
5
5
  "name": "cloud-ide-lms-model",
6
- "version": "1.1.20",
6
+ "version": "1.1.22",
7
7
  "description": "Package for Model management of Cloud IDEsys LMS",
8
8
  "main": "lib/index.js",
9
9
  "types": "lib/index.d.ts",