@voquill/firemix 0.1.0
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/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1 -0
- package/dist/mixpath.d.ts +10 -0
- package/dist/mixpath.d.ts.map +1 -0
- package/dist/mixpath.js +22 -0
- package/package.json +31 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as mixpath from "./mixpath";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FiremixPath } from "@firemix/core";
|
|
2
|
+
import { Contact, DatabaseMember, DatabaseUser, FlaggedAudio, Nullable, TermDoc, ToneDoc, Transcription } from "@voquill/types";
|
|
3
|
+
export declare const members: (memberId?: Nullable<string>) => FiremixPath<DatabaseMember>;
|
|
4
|
+
export declare const users: (userId?: Nullable<string>) => FiremixPath<DatabaseUser>;
|
|
5
|
+
export declare const contacts: (contactId?: Nullable<string>) => FiremixPath<Contact>;
|
|
6
|
+
export declare const transcriptions: (transcriptionId?: Nullable<string>) => FiremixPath<Transcription>;
|
|
7
|
+
export declare const termDocs: (userId: Nullable<string>) => FiremixPath<TermDoc>;
|
|
8
|
+
export declare const toneDocs: (userId: Nullable<string>) => FiremixPath<ToneDoc>;
|
|
9
|
+
export declare const flaggedAudio: (flaggedAudioId?: Nullable<string>) => FiremixPath<FlaggedAudio>;
|
|
10
|
+
//# sourceMappingURL=mixpath.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mixpath.d.ts","sourceRoot":"","sources":["../src/mixpath.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EACL,OAAO,EACP,cAAc,EACd,YAAY,EACZ,YAAY,EACZ,QAAQ,EACR,OAAO,EACP,OAAO,EACP,aAAa,EACd,MAAM,gBAAgB,CAAC;AAGxB,eAAO,MAAM,OAAO,GAClB,WAAW,QAAQ,CAAC,MAAM,CAAC,KAC1B,WAAW,CAAC,cAAc,CAE5B,CAAC;AAEF,eAAO,MAAM,KAAK,GAAI,SAAS,QAAQ,CAAC,MAAM,CAAC,KAAG,WAAW,CAAC,YAAY,CAEzE,CAAC;AAEF,eAAO,MAAM,QAAQ,GACnB,YAAY,QAAQ,CAAC,MAAM,CAAC,KAC3B,WAAW,CAAC,OAAO,CAErB,CAAC;AAEF,eAAO,MAAM,cAAc,GACzB,kBAAkB,QAAQ,CAAC,MAAM,CAAC,KACjC,WAAW,CAAC,aAAa,CAE3B,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,QAAQ,QAAQ,CAAC,MAAM,CAAC,KAAG,WAAW,CAAC,OAAO,CAEtE,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,QAAQ,QAAQ,CAAC,MAAM,CAAC,KAAG,WAAW,CAAC,OAAO,CAEtE,CAAC;AAEF,eAAO,MAAM,YAAY,GACvB,iBAAiB,QAAQ,CAAC,MAAM,CAAC,KAChC,WAAW,CAAC,YAAY,CAE1B,CAAC"}
|
package/dist/mixpath.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { listify } from "@voquill/utilities";
|
|
2
|
+
export const members = (memberId) => {
|
|
3
|
+
return ["members", ...listify(memberId)];
|
|
4
|
+
};
|
|
5
|
+
export const users = (userId) => {
|
|
6
|
+
return ["users", ...listify(userId)];
|
|
7
|
+
};
|
|
8
|
+
export const contacts = (contactId) => {
|
|
9
|
+
return ["contacts", ...listify(contactId)];
|
|
10
|
+
};
|
|
11
|
+
export const transcriptions = (transcriptionId) => {
|
|
12
|
+
return ["transcriptions", ...listify(transcriptionId)];
|
|
13
|
+
};
|
|
14
|
+
export const termDocs = (userId) => {
|
|
15
|
+
return ["termDocs", ...listify(userId)];
|
|
16
|
+
};
|
|
17
|
+
export const toneDocs = (userId) => {
|
|
18
|
+
return ["toneDocs", ...listify(userId)];
|
|
19
|
+
};
|
|
20
|
+
export const flaggedAudio = (flaggedAudioId) => {
|
|
21
|
+
return ["flaggedAudio", ...listify(flaggedAudioId)];
|
|
22
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@voquill/firemix",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Shared firemix utilities",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"build": "tsc",
|
|
9
|
+
"dev": "tsc --watch",
|
|
10
|
+
"clean": "rm -rf dist"
|
|
11
|
+
},
|
|
12
|
+
"files": [
|
|
13
|
+
"dist"
|
|
14
|
+
],
|
|
15
|
+
"peerDependencies": {
|
|
16
|
+
"firebase": "^11.1.0"
|
|
17
|
+
},
|
|
18
|
+
"devDependencies": {
|
|
19
|
+
"@voquill/typescript-config": "workspace:*",
|
|
20
|
+
"firebase": "^11.1.0",
|
|
21
|
+
"typescript": "5.9.2"
|
|
22
|
+
},
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"@firemix/core": "^0.1.7",
|
|
25
|
+
"@voquill/types": "workspace:*",
|
|
26
|
+
"@voquill/utilities": "workspace:*"
|
|
27
|
+
},
|
|
28
|
+
"publishConfig": {
|
|
29
|
+
"access": "public"
|
|
30
|
+
}
|
|
31
|
+
}
|