@roadmanjs/firebase-admin 1.0.5 → 1.0.6
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/package.json +1 -1
- package/dist/_utils/file.utils.d.ts +0 -7
- package/dist/_utils/file.utils.d.ts.map +0 -1
- package/dist/_utils/file.utils.js +0 -13
- package/dist/_utils/file.utils.js.map +0 -1
- package/dist/_utils/uuid.d.ts +0 -2
- package/dist/_utils/uuid.d.ts.map +0 -1
- package/dist/_utils/uuid.js +0 -9
- package/dist/_utils/uuid.js.map +0 -1
- package/dist/client/gql/index.d.ts +0 -3
- package/dist/client/gql/index.d.ts.map +0 -1
- package/dist/client/gql/index.js +0 -19
- package/dist/client/gql/index.js.map +0 -1
- package/dist/client/gql/media.fragment.d.ts +0 -21
- package/dist/client/gql/media.fragment.d.ts.map +0 -1
- package/dist/client/gql/media.fragment.js +0 -22
- package/dist/client/gql/media.fragment.js.map +0 -1
- package/dist/client/gql/media.mutation.d.ts +0 -5
- package/dist/client/gql/media.mutation.d.ts.map +0 -1
- package/dist/client/gql/media.mutation.js +0 -42
- package/dist/client/gql/media.mutation.js.map +0 -1
- package/dist/client/index.d.ts +0 -2
- package/dist/client/index.d.ts.map +0 -1
- package/dist/client/index.js +0 -18
- package/dist/client/index.js.map +0 -1
- package/dist/config.d.ts +0 -3
- package/dist/config.d.ts.map +0 -1
- package/dist/config.js +0 -6
- package/dist/config.js.map +0 -1
- package/dist/firebase/index.d.ts +0 -10
- package/dist/firebase/index.d.ts.map +0 -1
- package/dist/firebase/index.js +0 -73
- package/dist/firebase/index.js.map +0 -1
- package/dist/index.d.ts +0 -3
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -19
- package/dist/index.js.map +0 -1
- package/dist/media/file.input.d.ts +0 -12
- package/dist/media/file.input.d.ts.map +0 -1
- package/dist/media/file.input.js +0 -41
- package/dist/media/file.input.js.map +0 -1
- package/dist/media/media.model.d.ts +0 -22
- package/dist/media/media.model.d.ts.map +0 -1
- package/dist/media/media.model.js +0 -65
- package/dist/media/media.model.js.map +0 -1
- package/dist/roadman.d.ts +0 -8
- package/dist/roadman.d.ts.map +0 -1
- package/dist/roadman.js +0 -21
- package/dist/roadman.js.map +0 -1
- package/dist/script.d.ts +0 -2
- package/dist/script.d.ts.map +0 -1
- package/dist/script.js +0 -29
- package/dist/script.js.map +0 -1
- package/dist/test.d.ts +0 -2
- package/dist/test.d.ts.map +0 -1
- package/dist/test.js +0 -6
- package/dist/test.js.map +0 -1
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"file.utils.d.ts","sourceRoot":"","sources":["../../src/_utils/file.utils.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,aAAc,MAAM,WAEhD,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getFileExtension = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Get file extension
|
|
6
|
-
* @param mimetype
|
|
7
|
-
* @returns
|
|
8
|
-
*/
|
|
9
|
-
const getFileExtension = (mimetype) => {
|
|
10
|
-
return (mimetype || 'image/png').split('/')[1];
|
|
11
|
-
};
|
|
12
|
-
exports.getFileExtension = getFileExtension;
|
|
13
|
-
//# sourceMappingURL=file.utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"file.utils.js","sourceRoot":"","sources":["../../src/_utils/file.utils.ts"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACI,MAAM,gBAAgB,GAAG,CAAC,QAAgB,EAAE,EAAE;IACjD,OAAO,CAAC,QAAQ,IAAI,WAAW,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;AACnD,CAAC,CAAC;AAFW,QAAA,gBAAgB,oBAE3B"}
|
package/dist/_utils/uuid.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"uuid.d.ts","sourceRoot":"","sources":["../../src/_utils/uuid.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,QAAO,MAE/B,CAAC"}
|
package/dist/_utils/uuid.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.generateUUID = void 0;
|
|
4
|
-
const uuid_1 = require("uuid");
|
|
5
|
-
const generateUUID = () => {
|
|
6
|
-
return (0, uuid_1.v4)();
|
|
7
|
-
};
|
|
8
|
-
exports.generateUUID = generateUUID;
|
|
9
|
-
//# sourceMappingURL=uuid.js.map
|
package/dist/_utils/uuid.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"uuid.js","sourceRoot":"","sources":["../../src/_utils/uuid.ts"],"names":[],"mappings":";;;AAAA,+BAAkC;AAE3B,MAAM,YAAY,GAAG,GAAW,EAAE;IACrC,OAAO,IAAA,SAAM,GAAE,CAAC;AACpB,CAAC,CAAC;AAFW,QAAA,YAAY,gBAEvB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/client/gql/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC"}
|
package/dist/client/gql/index.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
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
|
-
__exportStar(require("./media.fragment"), exports);
|
|
18
|
-
__exportStar(require("./media.mutation"), exports);
|
|
19
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/client/gql/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,mDAAiC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export interface FileStringInput {
|
|
2
|
-
filename?: string;
|
|
3
|
-
mimetype: string;
|
|
4
|
-
uri: string;
|
|
5
|
-
}
|
|
6
|
-
export interface MediaDataType {
|
|
7
|
-
id?: string;
|
|
8
|
-
name?: string;
|
|
9
|
-
owner?: string;
|
|
10
|
-
filename?: string;
|
|
11
|
-
mimetype?: string;
|
|
12
|
-
encoding?: string;
|
|
13
|
-
server?: string;
|
|
14
|
-
size?: number;
|
|
15
|
-
path?: string;
|
|
16
|
-
url?: string;
|
|
17
|
-
createdAt?: Date;
|
|
18
|
-
updatedAt?: Date;
|
|
19
|
-
}
|
|
20
|
-
export declare const MediaDataTypeFragment: import("graphql").DocumentNode;
|
|
21
|
-
//# sourceMappingURL=media.fragment.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"media.fragment.d.ts","sourceRoot":"","sources":["../../../src/client/gql/media.fragment.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,eAAe;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;CACf;AACD,MAAM,WAAW,aAAa;IAC1B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,SAAS,CAAC,EAAE,IAAI,CAAC;CACpB;AAED,eAAO,MAAM,qBAAqB,gCAajC,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.MediaDataTypeFragment = void 0;
|
|
7
|
-
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
|
8
|
-
exports.MediaDataTypeFragment = (0, graphql_tag_1.default) `
|
|
9
|
-
fragment MediaDataTypeFragment on MediaDataType {
|
|
10
|
-
id
|
|
11
|
-
name
|
|
12
|
-
owner
|
|
13
|
-
filename
|
|
14
|
-
mimetype
|
|
15
|
-
encoding
|
|
16
|
-
server
|
|
17
|
-
size
|
|
18
|
-
path
|
|
19
|
-
url
|
|
20
|
-
}
|
|
21
|
-
`;
|
|
22
|
-
//# sourceMappingURL=media.fragment.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"media.fragment.js","sourceRoot":"","sources":["../../../src/client/gql/media.fragment.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA8B;AAsBjB,QAAA,qBAAqB,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;CAavC,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare const UPLOAD_FILES_MUTATION: import("graphql").DocumentNode;
|
|
2
|
-
export declare const UPLOAD_STRING_FILES_MUTATION: import("graphql").DocumentNode;
|
|
3
|
-
export declare const UPLOAD_FILES_FASTDFS_MUTATION: import("graphql").DocumentNode;
|
|
4
|
-
export declare const UPLOAD_STRING_FILES_FASTDFS_MUTATION: import("graphql").DocumentNode;
|
|
5
|
-
//# sourceMappingURL=media.mutation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"media.mutation.d.ts","sourceRoot":"","sources":["../../../src/client/gql/media.mutation.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,qBAAqB,gCAOjC,CAAC;AAEF,eAAO,MAAM,4BAA4B,gCAOxC,CAAC;AAGF,eAAO,MAAM,6BAA6B,gCAOzC,CAAC;AAEF,eAAO,MAAM,oCAAoC,gCAOhD,CAAC"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.UPLOAD_STRING_FILES_FASTDFS_MUTATION = exports.UPLOAD_FILES_FASTDFS_MUTATION = exports.UPLOAD_STRING_FILES_MUTATION = exports.UPLOAD_FILES_MUTATION = void 0;
|
|
7
|
-
const media_fragment_1 = require("./media.fragment");
|
|
8
|
-
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
|
9
|
-
exports.UPLOAD_FILES_MUTATION = (0, graphql_tag_1.default) `
|
|
10
|
-
mutation UploadFiles($files: [Upload!]!) {
|
|
11
|
-
data: upload(files: $files) {
|
|
12
|
-
...MediaDataTypeFragment
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
${media_fragment_1.MediaDataTypeFragment}
|
|
16
|
-
`;
|
|
17
|
-
exports.UPLOAD_STRING_FILES_MUTATION = (0, graphql_tag_1.default) `
|
|
18
|
-
mutation UploadStringFiles($files: [FileStringInput!]!) {
|
|
19
|
-
data: uploadString(files: $files) {
|
|
20
|
-
...MediaDataTypeFragment
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
${media_fragment_1.MediaDataTypeFragment}
|
|
24
|
-
`;
|
|
25
|
-
// FASTDFS
|
|
26
|
-
exports.UPLOAD_FILES_FASTDFS_MUTATION = (0, graphql_tag_1.default) `
|
|
27
|
-
mutation UploadFilesFastdfs($files: [Upload!]!) {
|
|
28
|
-
data: uploadFastdfs(files: $files) {
|
|
29
|
-
...MediaDataTypeFragment
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
${media_fragment_1.MediaDataTypeFragment}
|
|
33
|
-
`;
|
|
34
|
-
exports.UPLOAD_STRING_FILES_FASTDFS_MUTATION = (0, graphql_tag_1.default) `
|
|
35
|
-
mutation UploadStringFilesFastdfs($files: [FileStringInput!]!) {
|
|
36
|
-
data: uploadStringFastdfs(files: $files) {
|
|
37
|
-
...MediaDataTypeFragment
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
${media_fragment_1.MediaDataTypeFragment}
|
|
41
|
-
`;
|
|
42
|
-
//# sourceMappingURL=media.mutation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"media.mutation.js","sourceRoot":"","sources":["../../../src/client/gql/media.mutation.ts"],"names":[],"mappings":";;;;;;AAAA,qDAAuD;AACvD,8DAA8B;AAEjB,QAAA,qBAAqB,GAAG,IAAA,qBAAG,EAAA;;;;;;MAMlC,sCAAqB;CAC1B,CAAC;AAEW,QAAA,4BAA4B,GAAG,IAAA,qBAAG,EAAA;;;;;;MAMzC,sCAAqB;CAC1B,CAAC;AAEF,UAAU;AACG,QAAA,6BAA6B,GAAG,IAAA,qBAAG,EAAA;;;;;;MAM1C,sCAAqB;CAC1B,CAAC;AAEW,QAAA,oCAAoC,GAAG,IAAA,qBAAG,EAAA;;;;;;MAMjD,sCAAqB;CAC1B,CAAC"}
|
package/dist/client/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC"}
|
package/dist/client/index.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
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
|
-
__exportStar(require("./gql"), exports);
|
|
18
|
-
//# sourceMappingURL=index.js.map
|
package/dist/client/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB"}
|
package/dist/config.d.ts
DELETED
package/dist/config.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,KAAqC,CAAC;AAElD,eAAe,MAAM,CAAC"}
|
package/dist/config.js
DELETED
package/dist/config.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":";;AAAA,MAAM,sBAAsB,GAAG,OAAO,CAAC,GAAG,CAAC,WAAW,IAAI,IAAI,CAAC;AAC/D,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC;AAElD,kBAAe,MAAM,CAAC"}
|
package/dist/firebase/index.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { app } from 'firebase-admin';
|
|
2
|
-
export interface FirebaseConfig {
|
|
3
|
-
appOptions: any;
|
|
4
|
-
name?: string;
|
|
5
|
-
}
|
|
6
|
-
export interface FirebaseProject extends app.App {
|
|
7
|
-
projectId: string;
|
|
8
|
-
}
|
|
9
|
-
export declare let configureFirebase: (fbconfig?: FirebaseConfig) => Promise<FirebaseProject>;
|
|
10
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/firebase/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,GAAG,EAAC,MAAM,gBAAgB,CAAC;AAExC,MAAM,WAAW,cAAc;IAC3B,UAAU,EAAE,GAAG,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,eAAgB,SAAQ,GAAG,CAAC,GAAG;IAC5C,SAAS,EAAE,MAAM,CAAC;CACrB;AAKD,eAAO,IAAI,iBAAiB,EAAE,CAAC,QAAQ,CAAC,EAAE,cAAc,KAAK,OAAO,CAAC,eAAe,CAAC,CAAC"}
|
package/dist/firebase/index.js
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.configureFirebase = void 0;
|
|
7
|
-
const flarebase_auth_1 = require("@marplex/flarebase-auth");
|
|
8
|
-
const utils_1 = require("@roadmanjs/utils/dist/utils");
|
|
9
|
-
const config_1 = __importDefault(require("../config"));
|
|
10
|
-
let admin;
|
|
11
|
-
const edge = (0, utils_1.isEdge)();
|
|
12
|
-
const configureFirebaseNode = async (fbconfig) => {
|
|
13
|
-
if (fbconfig) {
|
|
14
|
-
const initAndReturn = async () => {
|
|
15
|
-
const app = await admin.initializeApp({
|
|
16
|
-
credential: admin.credential.cert(fbconfig.appOptions),
|
|
17
|
-
databaseURL: `https://${fbconfig.appOptions.project_id}.firebaseio.com`,
|
|
18
|
-
}, fbconfig.name);
|
|
19
|
-
// initialize app
|
|
20
|
-
return Object.assign(Object.assign({}, app), { projectId: fbconfig.name });
|
|
21
|
-
};
|
|
22
|
-
// check if app is already initialized, return it
|
|
23
|
-
if (admin.apps.length) {
|
|
24
|
-
const app = admin.apps.find((app) => app.name === fbconfig.name);
|
|
25
|
-
if (app) {
|
|
26
|
-
return Object.assign(Object.assign({}, app), { projectId: app.name });
|
|
27
|
-
}
|
|
28
|
-
return initAndReturn();
|
|
29
|
-
}
|
|
30
|
-
return initAndReturn();
|
|
31
|
-
}
|
|
32
|
-
let defaultApp;
|
|
33
|
-
// default
|
|
34
|
-
if (!admin.apps.length) {
|
|
35
|
-
defaultApp = await admin.initializeApp({
|
|
36
|
-
credential: admin.credential.cert(config_1.default),
|
|
37
|
-
databaseURL: `https://${config_1.default.project_id}.firebaseio.com`,
|
|
38
|
-
});
|
|
39
|
-
const { project_id } = config_1.default;
|
|
40
|
-
const projectId = project_id;
|
|
41
|
-
return Object.assign({ projectId }, defaultApp);
|
|
42
|
-
}
|
|
43
|
-
defaultApp = admin.apps[0];
|
|
44
|
-
const projectId = config_1.default.project_id;
|
|
45
|
-
return Object.assign({ projectId }, defaultApp);
|
|
46
|
-
};
|
|
47
|
-
const configureFirebaseEdge = async (fbconfig) => {
|
|
48
|
-
const initAndReturn = async (_config) => {
|
|
49
|
-
const auth = () => new flarebase_auth_1.FlarebaseAuth({
|
|
50
|
-
apiKey: _config.appOptions.apiKey,
|
|
51
|
-
projectId: _config.appOptions.project_id,
|
|
52
|
-
privateKey: _config.appOptions.private_key,
|
|
53
|
-
serviceAccountEmail: _config.appOptions.client_email,
|
|
54
|
-
});
|
|
55
|
-
// initialize app
|
|
56
|
-
return {
|
|
57
|
-
projectId: _config.name || _config.appOptions.project_id,
|
|
58
|
-
auth,
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
if (fbconfig) {
|
|
62
|
-
return initAndReturn(fbconfig);
|
|
63
|
-
}
|
|
64
|
-
return initAndReturn(config_1.default);
|
|
65
|
-
};
|
|
66
|
-
if (edge) {
|
|
67
|
-
exports.configureFirebase = configureFirebaseEdge;
|
|
68
|
-
}
|
|
69
|
-
else {
|
|
70
|
-
admin = require('firebase-admin');
|
|
71
|
-
exports.configureFirebase = configureFirebaseNode;
|
|
72
|
-
}
|
|
73
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/firebase/index.ts"],"names":[],"mappings":"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"}
|
package/dist/index.d.ts
DELETED
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC"}
|
package/dist/index.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
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
|
-
__exportStar(require("./firebase"), exports);
|
|
18
|
-
__exportStar(require("./roadman"), exports);
|
|
19
|
-
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,4CAA0B"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { MediaDataType } from './media.model';
|
|
2
|
-
export declare class FileInput implements Partial<MediaDataType & File> {
|
|
3
|
-
filename: string;
|
|
4
|
-
mimetype: string;
|
|
5
|
-
encoding: string;
|
|
6
|
-
}
|
|
7
|
-
export declare class FileStringInput {
|
|
8
|
-
filename: string;
|
|
9
|
-
mimetype: string;
|
|
10
|
-
uri: string;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=file.input.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"file.input.d.ts","sourceRoot":"","sources":["../../src/media/file.input.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,aAAa,EAAC,MAAM,eAAe,CAAC;AAE5C,qBACa,SAAU,YAAW,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IAEjB,QAAQ,EAAE,MAAM,CAAC;IAEjB,QAAQ,EAAE,MAAM,CAAC;CAC3D;AAED,qBACa,eAAe;IACe,QAAQ,EAAE,MAAM,CAAC;IAEjB,QAAQ,EAAE,MAAM,CAAC;IAEjB,GAAG,EAAE,MAAM,CAAC;CACtD"}
|
package/dist/media/file.input.js
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.FileStringInput = exports.FileInput = void 0;
|
|
10
|
-
const type_graphql_1 = require("type-graphql");
|
|
11
|
-
let FileInput = class FileInput {
|
|
12
|
-
};
|
|
13
|
-
exports.FileInput = FileInput;
|
|
14
|
-
__decorate([
|
|
15
|
-
(0, type_graphql_1.Field)(() => String, { nullable: true })
|
|
16
|
-
], FileInput.prototype, "filename", void 0);
|
|
17
|
-
__decorate([
|
|
18
|
-
(0, type_graphql_1.Field)(() => String, { nullable: true })
|
|
19
|
-
], FileInput.prototype, "mimetype", void 0);
|
|
20
|
-
__decorate([
|
|
21
|
-
(0, type_graphql_1.Field)(() => String, { nullable: true })
|
|
22
|
-
], FileInput.prototype, "encoding", void 0);
|
|
23
|
-
exports.FileInput = FileInput = __decorate([
|
|
24
|
-
(0, type_graphql_1.InputType)()
|
|
25
|
-
], FileInput);
|
|
26
|
-
let FileStringInput = class FileStringInput {
|
|
27
|
-
};
|
|
28
|
-
exports.FileStringInput = FileStringInput;
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, type_graphql_1.Field)(() => String, { nullable: true })
|
|
31
|
-
], FileStringInput.prototype, "filename", void 0);
|
|
32
|
-
__decorate([
|
|
33
|
-
(0, type_graphql_1.Field)(() => String, { nullable: true })
|
|
34
|
-
], FileStringInput.prototype, "mimetype", void 0);
|
|
35
|
-
__decorate([
|
|
36
|
-
(0, type_graphql_1.Field)(() => String, { nullable: true })
|
|
37
|
-
], FileStringInput.prototype, "uri", void 0);
|
|
38
|
-
exports.FileStringInput = FileStringInput = __decorate([
|
|
39
|
-
(0, type_graphql_1.InputType)('FileStringInput')
|
|
40
|
-
], FileStringInput);
|
|
41
|
-
//# sourceMappingURL=file.input.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"file.input.js","sourceRoot":"","sources":["../../src/media/file.input.ts"],"names":[],"mappings":";;;;;;;;;AAAA,+CAA8C;AAKvC,IAAM,SAAS,GAAf,MAAM,SAAS;CAMrB,CAAA;AANY,8BAAS;AACqB;IAAtC,IAAA,oBAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;2CAAkB;AAEjB;IAAtC,IAAA,oBAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;2CAAkB;AAEjB;IAAtC,IAAA,oBAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;2CAAkB;oBAL/C,SAAS;IADrB,IAAA,wBAAS,GAAE;GACC,SAAS,CAMrB;AAGM,IAAM,eAAe,GAArB,MAAM,eAAe;CAM3B,CAAA;AANY,0CAAe;AACe;IAAtC,IAAA,oBAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;iDAAkB;AAEjB;IAAtC,IAAA,oBAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;iDAAkB;AAEjB;IAAtC,IAAA,oBAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;4CAAa;0BAL1C,eAAe;IAD3B,IAAA,wBAAS,EAAC,iBAAiB,CAAC;GAChB,eAAe,CAM3B"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* GraphQL Types start
|
|
3
|
-
*/
|
|
4
|
-
export declare class MediaDataType {
|
|
5
|
-
id?: string;
|
|
6
|
-
name?: string;
|
|
7
|
-
filename?: string;
|
|
8
|
-
mimetype?: string;
|
|
9
|
-
encoding?: string;
|
|
10
|
-
server?: string;
|
|
11
|
-
size?: number;
|
|
12
|
-
path?: string;
|
|
13
|
-
url?: string;
|
|
14
|
-
owner?: string;
|
|
15
|
-
createdAt?: Date;
|
|
16
|
-
updatedAt?: Date;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* GraphQL Types end
|
|
20
|
-
*/
|
|
21
|
-
export default MediaDataType;
|
|
22
|
-
//# sourceMappingURL=media.model.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"media.model.d.ts","sourceRoot":"","sources":["../../src/media/media.model.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,qBACa,aAAa;IAEtB,EAAE,CAAC,EAAE,MAAM,CAAC;IAGZ,IAAI,CAAC,EAAE,MAAM,CAAC;IAGd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAMlB,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,IAAI,CAAC,EAAE,MAAM,CAAC;IAGd,IAAI,CAAC,EAAE,MAAM,CAAC;IAGd,GAAG,CAAC,EAAE,MAAM,CAAC;IAGb,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,SAAS,CAAC,EAAE,IAAI,CAAC;IAGjB,SAAS,CAAC,EAAE,IAAI,CAAC;CACpB;AAED;;GAEG;AAIH,eAAe,aAAa,CAAC"}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.MediaDataType = void 0;
|
|
10
|
-
const type_graphql_1 = require("type-graphql");
|
|
11
|
-
// const modelName = 'Media';
|
|
12
|
-
/**
|
|
13
|
-
* GraphQL Types start
|
|
14
|
-
*/
|
|
15
|
-
let MediaDataType = class MediaDataType {
|
|
16
|
-
};
|
|
17
|
-
exports.MediaDataType = MediaDataType;
|
|
18
|
-
__decorate([
|
|
19
|
-
(0, type_graphql_1.Field)(() => String, { nullable: true })
|
|
20
|
-
], MediaDataType.prototype, "id", void 0);
|
|
21
|
-
__decorate([
|
|
22
|
-
(0, type_graphql_1.Field)(() => String, { nullable: true })
|
|
23
|
-
], MediaDataType.prototype, "name", void 0);
|
|
24
|
-
__decorate([
|
|
25
|
-
(0, type_graphql_1.Field)(() => String, { nullable: true })
|
|
26
|
-
], MediaDataType.prototype, "filename", void 0);
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, type_graphql_1.Field)(() => String, { nullable: true })
|
|
29
|
-
], MediaDataType.prototype, "mimetype", void 0);
|
|
30
|
-
__decorate([
|
|
31
|
-
(0, type_graphql_1.Field)(() => String, { nullable: true })
|
|
32
|
-
], MediaDataType.prototype, "encoding", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, type_graphql_1.Field)(() => String, {
|
|
35
|
-
nullable: true,
|
|
36
|
-
description: 'The server where the file is stored, e.g fastdfs',
|
|
37
|
-
})
|
|
38
|
-
], MediaDataType.prototype, "server", void 0);
|
|
39
|
-
__decorate([
|
|
40
|
-
(0, type_graphql_1.Field)(() => Number, { nullable: true })
|
|
41
|
-
], MediaDataType.prototype, "size", void 0);
|
|
42
|
-
__decorate([
|
|
43
|
-
(0, type_graphql_1.Field)(() => String, { nullable: true })
|
|
44
|
-
], MediaDataType.prototype, "path", void 0);
|
|
45
|
-
__decorate([
|
|
46
|
-
(0, type_graphql_1.Field)(() => String, { nullable: true })
|
|
47
|
-
], MediaDataType.prototype, "url", void 0);
|
|
48
|
-
__decorate([
|
|
49
|
-
(0, type_graphql_1.Field)(() => String, { nullable: true })
|
|
50
|
-
], MediaDataType.prototype, "owner", void 0);
|
|
51
|
-
__decorate([
|
|
52
|
-
(0, type_graphql_1.Field)(() => Date, { nullable: true })
|
|
53
|
-
], MediaDataType.prototype, "createdAt", void 0);
|
|
54
|
-
__decorate([
|
|
55
|
-
(0, type_graphql_1.Field)(() => Date, { nullable: true })
|
|
56
|
-
], MediaDataType.prototype, "updatedAt", void 0);
|
|
57
|
-
exports.MediaDataType = MediaDataType = __decorate([
|
|
58
|
-
(0, type_graphql_1.ObjectType)()
|
|
59
|
-
], MediaDataType);
|
|
60
|
-
/**
|
|
61
|
-
* GraphQL Types end
|
|
62
|
-
*/
|
|
63
|
-
// export const MediaDataModel: Model = new Model(modelName);
|
|
64
|
-
exports.default = MediaDataType;
|
|
65
|
-
//# sourceMappingURL=media.model.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"media.model.js","sourceRoot":"","sources":["../../src/media/media.model.ts"],"names":[],"mappings":";;;;;;;;;AAAA,+CAA+C;AAE/C,6BAA6B;AAC7B;;GAEG;AAEI,IAAM,aAAa,GAAnB,MAAM,aAAa;CAuCzB,CAAA;AAvCY,sCAAa;AAEtB;IADC,IAAA,oBAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;yCAC1B;AAGZ;IADC,IAAA,oBAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;2CACxB;AAGd;IADC,IAAA,oBAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;+CACpB;AAGlB;IADC,IAAA,oBAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;+CACpB;AAGlB;IADC,IAAA,oBAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;+CACpB;AAMlB;IAJC,IAAA,oBAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE;QACjB,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,kDAAkD;KAClE,CAAC;6CACc;AAGhB;IADC,IAAA,oBAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;2CACxB;AAGd;IADC,IAAA,oBAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;2CACxB;AAGd;IADC,IAAA,oBAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;0CACzB;AAGb;IADC,IAAA,oBAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;4CACvB;AAGf;IADC,IAAA,oBAAK,EAAC,GAAG,EAAE,CAAC,IAAI,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;gDACnB;AAGjB;IADC,IAAA,oBAAK,EAAC,GAAG,EAAE,CAAC,IAAI,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;gDACnB;wBAtCR,aAAa;IADzB,IAAA,yBAAU,GAAE;GACA,aAAa,CAuCzB;AAED;;GAEG;AAEH,6DAA6D;AAE7D,kBAAe,aAAa,CAAC"}
|
package/dist/roadman.d.ts
DELETED
package/dist/roadman.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"roadman.d.ts","sourceRoot":"","sources":["../src/roadman.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,OAAO,EAAe,MAAM,iBAAiB,CAAC;AAQ3D;;;;GAIG;AACH,eAAO,MAAM,eAAe,EAAE,OAU7B,CAAC"}
|
package/dist/roadman.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.firebaseRoadman = void 0;
|
|
4
|
-
// import MediaResolver from './media/media.resolver';
|
|
5
|
-
// import MediaResolverFastdfs from './media/media.resolver.fastdfs';
|
|
6
|
-
const firebase_1 = require("./firebase");
|
|
7
|
-
// import {isEmpty} from 'lodash';
|
|
8
|
-
const logs_1 = require("@roadmanjs/logs");
|
|
9
|
-
/**
|
|
10
|
-
* A firebase roadman
|
|
11
|
-
* @param RoadmanBuild
|
|
12
|
-
* TODO mediaRoadman
|
|
13
|
-
*/
|
|
14
|
-
const firebaseRoadman = async (args) => {
|
|
15
|
-
const { projectId } = await (0, firebase_1.configureFirebase)();
|
|
16
|
-
(0, logs_1.log)('ROADMAN: Firebase', '**************************************ProjectID********************', projectId);
|
|
17
|
-
return args;
|
|
18
|
-
};
|
|
19
|
-
exports.firebaseRoadman = firebaseRoadman;
|
|
20
|
-
// export const getMediaFileUploadResolvers = () => [MediaResolver];
|
|
21
|
-
//# sourceMappingURL=roadman.js.map
|
package/dist/roadman.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"roadman.js","sourceRoot":"","sources":["../src/roadman.ts"],"names":[],"mappings":";;;AAEA,sDAAsD;AACtD,qEAAqE;AACrE,yCAA6C;AAC7C,kCAAkC;AAClC,0CAAoC;AAEpC;;;;GAIG;AACI,MAAM,eAAe,GAAY,KAAK,EAAE,IAAkB,EAAyB,EAAE;IACxF,MAAM,EAAC,SAAS,EAAC,GAAG,MAAM,IAAA,4BAAiB,GAAE,CAAC;IAE9C,IAAA,UAAG,EACC,mBAAmB,EACnB,qEAAqE,EACrE,SAAS,CACZ,CAAC;IAEF,OAAO,IAAI,CAAC;AAChB,CAAC,CAAC;AAVW,QAAA,eAAe,mBAU1B;AAEF,oEAAoE"}
|
package/dist/script.d.ts
DELETED
package/dist/script.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"script.d.ts","sourceRoot":"","sources":["../src/script.ts"],"names":[],"mappings":""}
|
package/dist/script.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const utils_1 = require("@roadmanjs/utils");
|
|
4
|
-
// Automatically run this
|
|
5
|
-
(async () => {
|
|
6
|
-
const args = [
|
|
7
|
-
{ cmd: 'rm', dir: 'dist-client' },
|
|
8
|
-
{ cmd: 'mkdir', dir: 'dist-client' },
|
|
9
|
-
{ cmd: 'cp', dir: 'dist/client/gql', newDir: 'dist-client' },
|
|
10
|
-
{ cmd: 'cp', dir: 'register', newDir: 'dist-client/register' },
|
|
11
|
-
{ cmd: 'cp', dir: 'docs', newDir: 'dist-client/docs' },
|
|
12
|
-
{ cmd: 'cp', dir: 'README.md', newDir: 'dist-client/README.md' },
|
|
13
|
-
// {cmd: 'cp', dir: 'LICENSE', newDir: 'dist-client/LICENSE'},
|
|
14
|
-
{ cmd: 'cp', dir: 'dist/client/index.js', newDir: 'dist-client/index.js' },
|
|
15
|
-
{ cmd: 'cp', dir: 'dist/client/index.d.ts', newDir: 'dist-client/index.d.ts' },
|
|
16
|
-
{ cmd: 'cp', dir: 'dist/client/index.js.map', newDir: 'dist-client/index.js.map' },
|
|
17
|
-
];
|
|
18
|
-
(0, utils_1.buildDirs)(args);
|
|
19
|
-
await (0, utils_1.createClientPackageJson)({
|
|
20
|
-
name: '@roadmanjs/firebase-client',
|
|
21
|
-
description: 'GraphQL client gql for @roadmanjs/firebase-admin',
|
|
22
|
-
extraProps: {
|
|
23
|
-
main: 'index.js',
|
|
24
|
-
types: 'index.d.ts',
|
|
25
|
-
files: ['index.d.ts', 'docs/', '/gql', 'register/', 'LICENSE'],
|
|
26
|
-
},
|
|
27
|
-
});
|
|
28
|
-
})();
|
|
29
|
-
//# sourceMappingURL=script.js.map
|
package/dist/script.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"script.js","sourceRoot":"","sources":["../src/script.ts"],"names":[],"mappings":";;AAAA,4CAA4E;AAE5E,yBAAyB;AACzB,CAAC,KAAK,IAAI,EAAE;IACR,MAAM,IAAI,GAAa;QACnB,EAAC,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,aAAa,EAAC;QAC/B,EAAC,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,aAAa,EAAC;QAClC,EAAC,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,iBAAiB,EAAE,MAAM,EAAE,aAAa,EAAC;QAC1D,EAAC,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,EAAE,sBAAsB,EAAC;QAC5D,EAAC,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,kBAAkB,EAAC;QACpD,EAAC,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,WAAW,EAAE,MAAM,EAAE,uBAAuB,EAAC;QAC9D,8DAA8D;QAC9D,EAAC,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,sBAAsB,EAAE,MAAM,EAAE,sBAAsB,EAAC;QACxE,EAAC,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,wBAAwB,EAAE,MAAM,EAAE,wBAAwB,EAAC;QAC5E,EAAC,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,0BAA0B,EAAE,MAAM,EAAE,0BAA0B,EAAC;KACnF,CAAC;IAEF,IAAA,iBAAS,EAAC,IAAI,CAAC,CAAC;IAEhB,MAAM,IAAA,+BAAuB,EAAC;QAC1B,IAAI,EAAE,4BAA4B;QAClC,WAAW,EAAE,kDAAkD;QAE/D,UAAU,EAAE;YACR,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,YAAY;YACnB,KAAK,EAAE,CAAC,YAAY,EAAE,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,SAAS,CAAC;SACjE;KACJ,CAAC,CAAC;AACP,CAAC,CAAC,EAAE,CAAC"}
|
package/dist/test.d.ts
DELETED
package/dist/test.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"test.d.ts","sourceRoot":"","sources":["../src/test.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC"}
|
package/dist/test.js
DELETED
package/dist/test.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"test.js","sourceRoot":"","sources":["../src/test.ts"],"names":[],"mappings":";;AAAA,4BAA0B;AAE1B,mCAAwC;AAExC,IAAA,uBAAe,EAAC,IAAI,CAAC,CAAC"}
|