@malevich-studio/strapi-sdk-typescript 1.2.27 → 1.2.29
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/dist/cli.cjs +22543 -0
- package/dist/cli.cjs.map +1 -0
- package/dist/cli.d.ts +1 -0
- package/dist/cli.mjs +22523 -0
- package/dist/cli.mjs.map +1 -0
- package/dist/generator/attributes/base-relation.d.ts +11 -0
- package/dist/generator/attributes/base.d.ts +27 -0
- package/dist/generator/attributes/blocks.d.ts +13 -0
- package/dist/generator/attributes/boolean.d.ts +11 -0
- package/dist/generator/attributes/component.d.ts +20 -0
- package/dist/generator/attributes/date-time.d.ts +11 -0
- package/dist/generator/attributes/date.d.ts +11 -0
- package/dist/generator/attributes/dynamiczone.d.ts +18 -0
- package/dist/generator/attributes/enumeration.d.ts +13 -0
- package/dist/generator/attributes/index.d.ts +5 -0
- package/dist/generator/attributes/json.d.ts +12 -0
- package/dist/generator/attributes/media.d.ts +22 -0
- package/dist/generator/attributes/number.d.ts +13 -0
- package/dist/generator/attributes/relation.d.ts +48 -0
- package/dist/generator/attributes/string.d.ts +14 -0
- package/dist/generator/attributes/time.d.ts +11 -0
- package/dist/generator/index.d.ts +5 -0
- package/dist/generator/utils/get-component-name.d.ts +5 -0
- package/dist/generator/utils/get-content-type-name.d.ts +5 -0
- package/dist/index.cjs +21465 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +201 -0
- package/dist/index.mjs +21463 -0
- package/dist/index.mjs.map +1 -0
- package/dist/logger.d.ts +2 -0
- package/dist/server.d.ts +10 -0
- package/package.json +7 -2
package/dist/logger.d.ts
ADDED
package/dist/server.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Strapi } from "@/index.ts";
|
|
2
|
+
export declare class ServerStrapi extends Strapi {
|
|
3
|
+
/**
|
|
4
|
+
* @param files list of files names which will be uploaded, example: ['/app/data/cover.js']
|
|
5
|
+
*/
|
|
6
|
+
upload(files: {
|
|
7
|
+
path: string;
|
|
8
|
+
filename?: string;
|
|
9
|
+
}[]): Promise<import("@/index.ts").File[]>;
|
|
10
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@malevich-studio/strapi-sdk-typescript",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.29",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"bin": {
|
|
6
6
|
"generate-strapi-types": "./dist/cli.mjs"
|
|
@@ -29,7 +29,8 @@
|
|
|
29
29
|
"dotenv": "^16.4.7",
|
|
30
30
|
"husky": "^9.1.7",
|
|
31
31
|
"lodash": "^4.17.21",
|
|
32
|
-
"mime": "^4.0.6"
|
|
32
|
+
"mime": "^4.0.6",
|
|
33
|
+
"qs": "^6.13.1"
|
|
33
34
|
},
|
|
34
35
|
"type": "module",
|
|
35
36
|
"author": {
|
|
@@ -50,13 +51,17 @@
|
|
|
50
51
|
"license": "ISC",
|
|
51
52
|
"description": "A TypeScript SDK for interacting with Strapi APIs.",
|
|
52
53
|
"devDependencies": {
|
|
54
|
+
"@rollup/plugin-alias": "^5.1.1",
|
|
53
55
|
"@rollup/plugin-commonjs": "^28.0.2",
|
|
54
56
|
"@rollup/plugin-json": "^6.1.0",
|
|
55
57
|
"@rollup/plugin-node-resolve": "^16.0.0",
|
|
56
58
|
"@rollup/plugin-typescript": "^12.1.2",
|
|
57
59
|
"@types/debug": "^4.1.12",
|
|
60
|
+
"@types/lodash": "^4.17.20",
|
|
61
|
+
"@types/qs": "^6.14.0",
|
|
58
62
|
"rollup": "^4.34.6",
|
|
59
63
|
"rollup-plugin-dts": "^6.1.1",
|
|
64
|
+
"tslib": "^2.8.1",
|
|
60
65
|
"typescript": "^5.7.3"
|
|
61
66
|
},
|
|
62
67
|
"keywords": [
|