cloud-ide-lms-model 1.0.277 → 1.0.279
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/lib/model/common/index.d.ts +1 -0
- package/lib/model/common/index.js +18 -0
- package/lib/model/common/mongoose-object.d.ts +13 -0
- package/lib/model/common/mongoose-object.js +2 -0
- package/lib/model/index.d.ts +1 -0
- package/lib/model/index.js +1 -0
- package/lib/routes/commonRoutes.d.ts +12 -0
- package/lib/routes/commonRoutes.js +17 -0
- package/lib/routes/index.d.ts +1 -0
- package/lib/routes/index.js +1 -0
- package/lib/schema/core/core_file_manager.d.ts +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './mongoose-object';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
// Export mongoose object utilities
|
|
18
|
+
__exportStar(require("./mongoose-object"), exports);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { controllerResponse } from '../../utilities';
|
|
2
|
+
interface mongooseObjectIdCreateControllerResponse extends controllerResponse {
|
|
3
|
+
data?: {
|
|
4
|
+
objectId: string;
|
|
5
|
+
};
|
|
6
|
+
}
|
|
7
|
+
interface mongooseObjectIdsCreateControllerResponse extends controllerResponse {
|
|
8
|
+
data?: {
|
|
9
|
+
objectIds: string[];
|
|
10
|
+
count: number;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export { mongooseObjectIdCreateControllerResponse, mongooseObjectIdsCreateControllerResponse };
|
package/lib/model/index.d.ts
CHANGED
package/lib/model/index.js
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Object containing URLs for common utility endpoints.
|
|
3
|
+
* These URLs are used for various common operations such as ObjectId generation, etc.
|
|
4
|
+
*/
|
|
5
|
+
declare const commonRoutesUrl: {
|
|
6
|
+
module: string;
|
|
7
|
+
/** Endpoint to generate a single ObjectId */
|
|
8
|
+
generateObjectId: string;
|
|
9
|
+
/** Endpoint to generate multiple ObjectIds */
|
|
10
|
+
generateObjectIds: string;
|
|
11
|
+
};
|
|
12
|
+
export { commonRoutesUrl };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.commonRoutesUrl = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Object containing URLs for common utility endpoints.
|
|
6
|
+
* These URLs are used for various common operations such as ObjectId generation, etc.
|
|
7
|
+
*/
|
|
8
|
+
const commonRoutesUrl = {
|
|
9
|
+
module: 'common',
|
|
10
|
+
/** Endpoint to generate a single ObjectId */
|
|
11
|
+
generateObjectId: "generate-object-id",
|
|
12
|
+
/** Endpoint to generate multiple ObjectIds */
|
|
13
|
+
generateObjectIds: "generate-object-ids"
|
|
14
|
+
};
|
|
15
|
+
exports.commonRoutesUrl = commonRoutesUrl;
|
|
16
|
+
// Freeze the commonRoutesUrl object to prevent modifications
|
|
17
|
+
Object.freeze(commonRoutesUrl);
|
package/lib/routes/index.d.ts
CHANGED
package/lib/routes/index.js
CHANGED