@dereekb/firebase 9.9.5 → 9.10.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/CHANGELOG.md +10 -0
- package/package.json +6 -6
- package/src/lib/client/function/development.function.d.ts +20 -0
- package/src/lib/client/function/development.function.factory.d.ts +14 -0
- package/src/lib/client/function/development.function.factory.js +23 -0
- package/src/lib/client/function/development.function.factory.js.map +1 -0
- package/src/lib/client/function/development.function.js +16 -0
- package/src/lib/client/function/development.function.js.map +1 -0
- package/src/lib/client/function/index.d.ts +2 -0
- package/src/lib/client/function/index.js +2 -0
- package/src/lib/client/function/index.js.map +1 -1
- package/src/lib/common/development/function.d.ts +26 -0
- package/src/lib/common/development/function.js +23 -0
- package/src/lib/common/development/function.js.map +1 -0
- package/src/lib/common/development/function.schedule.d.ts +28 -0
- package/src/lib/common/development/function.schedule.js +33 -0
- package/src/lib/common/development/function.schedule.js.map +1 -0
- package/src/lib/common/development/index.d.ts +2 -0
- package/src/lib/common/development/index.js +6 -0
- package/src/lib/common/development/index.js.map +1 -0
- package/src/lib/common/firestore/collection/collection.d.ts +41 -0
- package/src/lib/common/firestore/collection/collection.js +31 -1
- package/src/lib/common/firestore/collection/collection.js.map +1 -1
- package/src/lib/common/index.d.ts +1 -0
- package/src/lib/common/index.js +1 -0
- package/src/lib/common/index.js.map +1 -1
- package/test/CHANGELOG.md +4 -0
- package/test/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
# [9.10.0](https://github.com/dereekb/dbx-components/compare/v9.9.5-dev...v9.10.0) (2022-10-05)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* added DbxFirebaseDevelopmentSchedulerService ([713bac5](https://github.com/dereekb/dbx-components/commit/713bac57dd1864c52394a16d990f04fc81e0c543))
|
|
11
|
+
* added firebaseServerDevFunctions() ([375e3ac](https://github.com/dereekb/dbx-components/commit/375e3acf4e7539bdca37c68b50617ea455690d69))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
5
15
|
## [9.9.5](https://github.com/dereekb/dbx-components/compare/v9.9.4-dev...v9.9.5) (2022-09-19)
|
|
6
16
|
|
|
7
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/firebase",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.10.0",
|
|
4
4
|
"devDependencies": {
|
|
5
5
|
"@firebase/rules-unit-testing": "^2.0.0"
|
|
6
6
|
},
|
|
@@ -22,17 +22,17 @@
|
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"rxjs": "^7.5.0",
|
|
24
24
|
"firebase": "^9.9.2",
|
|
25
|
-
"@dereekb/util": "9.
|
|
25
|
+
"@dereekb/util": "9.10.0",
|
|
26
26
|
"lodash.isequal": "^4.5.0",
|
|
27
27
|
"make-error": "^1.3.0",
|
|
28
28
|
"class-validator": "^0.13.2",
|
|
29
29
|
"ts-essentials": "^9.1.2",
|
|
30
30
|
"extra-set": "^2.2.11",
|
|
31
|
-
"@dereekb/rxjs": "9.9.5",
|
|
32
|
-
"ms": "^3.0.0-canary.1",
|
|
33
|
-
"@dereekb/model": "9.9.5",
|
|
34
31
|
"class-transformer": "^0.5.1",
|
|
35
|
-
"@dereekb/
|
|
32
|
+
"@dereekb/rxjs": "9.10.0",
|
|
33
|
+
"ms": "^3.0.0-canary.1",
|
|
34
|
+
"@dereekb/model": "9.10.0",
|
|
35
|
+
"@dereekb/date": "9.10.0",
|
|
36
36
|
"date-fns": "^2.29.0",
|
|
37
37
|
"date-fns-tz": "^1.3.0",
|
|
38
38
|
"rrule": "git+https://git@github.com/dereekb/rrule#2b13b1ea881059ba2ecfec380e12ef244ef54570",
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ScheduledFunctionDevelopmentFirebaseFunctionParams, ScheduledFunctionDevelopmentFirebaseFunctionResult } from '../../common/development/function.schedule';
|
|
2
|
+
import { FirebaseFunction } from './function';
|
|
3
|
+
/**
|
|
4
|
+
* The default functions key for the FirebaseDevelopmentFunctionTypeMap/Functions, used in an app's functions map.
|
|
5
|
+
*/
|
|
6
|
+
export declare const FIREBASE_DEVELOPMENT_FUNCTIONS_MAP_KEY = "developmentFunctions";
|
|
7
|
+
/**
|
|
8
|
+
* Base map of all development functions enabled by the server.
|
|
9
|
+
*/
|
|
10
|
+
export declare type FirebaseDevelopmentFunctionTypeMap = {
|
|
11
|
+
scheduledFunction: [ScheduledFunctionDevelopmentFirebaseFunctionParams, ScheduledFunctionDevelopmentFirebaseFunctionResult];
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Base DevelopmentFirebaseFunctionMap for all development functions enabled by the server (via firebaseServerDevFunctions())
|
|
15
|
+
*
|
|
16
|
+
* Is used by dbx-firebase
|
|
17
|
+
*/
|
|
18
|
+
export declare abstract class FirebaseDevelopmentFunctions {
|
|
19
|
+
abstract scheduledFunction: FirebaseFunction<ScheduledFunctionDevelopmentFirebaseFunctionParams, ScheduledFunctionDevelopmentFirebaseFunctionResult>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Functions } from 'firebase/functions';
|
|
2
|
+
import { FirebaseFunctionTypeMap, FirebaseFunctionMap } from './function';
|
|
3
|
+
import { FirebaseFunctionTypeConfigMap } from './function.factory';
|
|
4
|
+
export declare type DevelopmentFirebaseFunctionTypeMap = FirebaseFunctionTypeMap;
|
|
5
|
+
/**
|
|
6
|
+
* The configuration for a types map.
|
|
7
|
+
*/
|
|
8
|
+
export declare type DevelopmentFirebaseFunctionConfigMap<M extends DevelopmentFirebaseFunctionTypeMap> = FirebaseFunctionTypeConfigMap<M>;
|
|
9
|
+
export declare type DevelopmentFirebaseFunctionMap<M extends DevelopmentFirebaseFunctionTypeMap> = FirebaseFunctionMap<M>;
|
|
10
|
+
/**
|
|
11
|
+
* Used for building a FirebaseFunctionMap<M> for a specific Functions instance.
|
|
12
|
+
*/
|
|
13
|
+
export declare type DevelopmentFirebaseFunctionMapFactory<M extends DevelopmentFirebaseFunctionTypeMap> = (functionsInstance: Functions) => DevelopmentFirebaseFunctionMap<M>;
|
|
14
|
+
export declare function developmentFirebaseFunctionMapFactory<M extends DevelopmentFirebaseFunctionTypeMap>(configMap: DevelopmentFirebaseFunctionConfigMap<M>): DevelopmentFirebaseFunctionMapFactory<M>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
3
|
+
// The use of any here does not degrade the type-safety. The correct type is inferred in most cases.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.developmentFirebaseFunctionMapFactory = void 0;
|
|
6
|
+
const util_1 = require("@dereekb/util");
|
|
7
|
+
const functions_1 = require("firebase/functions");
|
|
8
|
+
const function_1 = require("../../common/development/function");
|
|
9
|
+
const function_callable_1 = require("./function.callable");
|
|
10
|
+
function developmentFirebaseFunctionMapFactory(configMap) {
|
|
11
|
+
return (functionsInstance) => {
|
|
12
|
+
const _devFn = (0, util_1.cachedGetter)(() => (0, functions_1.httpsCallable)(functionsInstance, function_1.RUN_DEV_FUNCTION_APP_FUNCTION_KEY));
|
|
13
|
+
function makeFunction(fn, specifier) {
|
|
14
|
+
return (0, function_callable_1.mapHttpsCallable)(fn(), { mapInput: (data) => (0, function_1.onCallDevelopmentParams)(specifier, data) }, true);
|
|
15
|
+
}
|
|
16
|
+
const functionsMap = (0, util_1.mapObjectMap)(configMap, (enabled, specifier) => {
|
|
17
|
+
return makeFunction(_devFn, specifier);
|
|
18
|
+
});
|
|
19
|
+
return functionsMap;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
exports.developmentFirebaseFunctionMapFactory = developmentFirebaseFunctionMapFactory;
|
|
23
|
+
//# sourceMappingURL=development.function.factory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"development.function.factory.js","sourceRoot":"","sources":["../../../../../../../packages/firebase/src/lib/client/function/development.function.factory.ts"],"names":[],"mappings":";AAAA,uDAAuD;AACvD,oGAAoG;;;AAEpG,wCAAmE;AACnE,kDAA6E;AAC7E,gEAA+G;AAE/G,2DAAuD;AAiBvD,SAAgB,qCAAqC,CAA+C,SAAkD;IACpJ,OAAO,CAAC,iBAA4B,EAAE,EAAE;QACtC,MAAM,MAAM,GAAG,IAAA,mBAAY,EAAC,GAAG,EAAE,CAAC,IAAA,yBAAa,EAAC,iBAAiB,EAAE,4CAAiC,CAAC,CAAC,CAAC;QAEvG,SAAS,YAAY,CAAC,EAA2C,EAAE,SAAiB;YAClF,OAAO,IAAA,oCAAgB,EAAC,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,kCAAuB,EAAC,SAAS,EAAE,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;QACxG,CAAC;QAED,MAAM,YAAY,GAAsC,IAAA,mBAAY,EAAC,SAAS,EAAE,CAAC,OAAO,EAAE,SAAS,EAAE,EAAE;YACrG,OAAO,YAAY,CAAC,MAAM,EAAE,SAAmB,CAAC,CAAC;QACnD,CAAC,CAAC,CAAC;QAEH,OAAO,YAAY,CAAC;IACtB,CAAC,CAAC;AACJ,CAAC;AAdD,sFAcC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FirebaseDevelopmentFunctions = exports.FIREBASE_DEVELOPMENT_FUNCTIONS_MAP_KEY = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* The default functions key for the FirebaseDevelopmentFunctionTypeMap/Functions, used in an app's functions map.
|
|
6
|
+
*/
|
|
7
|
+
exports.FIREBASE_DEVELOPMENT_FUNCTIONS_MAP_KEY = 'developmentFunctions';
|
|
8
|
+
/**
|
|
9
|
+
* Base DevelopmentFirebaseFunctionMap for all development functions enabled by the server (via firebaseServerDevFunctions())
|
|
10
|
+
*
|
|
11
|
+
* Is used by dbx-firebase
|
|
12
|
+
*/
|
|
13
|
+
class FirebaseDevelopmentFunctions {
|
|
14
|
+
}
|
|
15
|
+
exports.FirebaseDevelopmentFunctions = FirebaseDevelopmentFunctions;
|
|
16
|
+
//# sourceMappingURL=development.function.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"development.function.js","sourceRoot":"","sources":["../../../../../../../packages/firebase/src/lib/client/function/development.function.ts"],"names":[],"mappings":";;;AAGA;;GAEG;AACU,QAAA,sCAAsC,GAAG,sBAAsB,CAAC;AAS7E;;;;GAIG;AACH,MAAsB,4BAA4B;CAEjD;AAFD,oEAEC"}
|
|
@@ -5,4 +5,6 @@ tslib_1.__exportStar(require("./function"), exports);
|
|
|
5
5
|
tslib_1.__exportStar(require("./function.callable"), exports);
|
|
6
6
|
tslib_1.__exportStar(require("./function.factory"), exports);
|
|
7
7
|
tslib_1.__exportStar(require("./model.function.factory"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./development.function.factory"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./development.function"), exports);
|
|
8
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/firebase/src/lib/client/function/index.ts"],"names":[],"mappings":";;;AAAA,qDAA2B;AAC3B,8DAAoC;AACpC,6DAAmC;AACnC,mEAAyC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/firebase/src/lib/client/function/index.ts"],"names":[],"mappings":";;;AAAA,qDAA2B;AAC3B,8DAAoC;AACpC,6DAAmC;AACnC,mEAAyC;AACzC,yEAA+C;AAC/C,iEAAuC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Used to specify which function to direct requests to.
|
|
3
|
+
*/
|
|
4
|
+
export declare type DevelopmentFirebaseFunctionSpecifier = string;
|
|
5
|
+
/**
|
|
6
|
+
* Provides a reference to a DevelopmentFirebaseFunctionSpecifier if available.
|
|
7
|
+
*/
|
|
8
|
+
export declare type DevelopmentFirebaseFunctionSpecifierRef = {
|
|
9
|
+
specifier: DevelopmentFirebaseFunctionSpecifier;
|
|
10
|
+
};
|
|
11
|
+
export interface OnCallDevelopmentParams<T = unknown> {
|
|
12
|
+
specifier: string;
|
|
13
|
+
data: T;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Creates an OnCallDevelopmentParams
|
|
17
|
+
*
|
|
18
|
+
* @param modelType
|
|
19
|
+
* @param data
|
|
20
|
+
* @returns
|
|
21
|
+
*/
|
|
22
|
+
export declare function onCallDevelopmentParams<T>(specifier: string, data: T): OnCallDevelopmentParams<T>;
|
|
23
|
+
/**
|
|
24
|
+
* Key used on the front-end and backend that refers to a specific function for creating models.
|
|
25
|
+
*/
|
|
26
|
+
export declare const RUN_DEV_FUNCTION_APP_FUNCTION_KEY = "dev";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RUN_DEV_FUNCTION_APP_FUNCTION_KEY = exports.onCallDevelopmentParams = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Creates an OnCallDevelopmentParams
|
|
6
|
+
*
|
|
7
|
+
* @param modelType
|
|
8
|
+
* @param data
|
|
9
|
+
* @returns
|
|
10
|
+
*/
|
|
11
|
+
function onCallDevelopmentParams(specifier, data) {
|
|
12
|
+
const result = {
|
|
13
|
+
specifier,
|
|
14
|
+
data
|
|
15
|
+
};
|
|
16
|
+
return result;
|
|
17
|
+
}
|
|
18
|
+
exports.onCallDevelopmentParams = onCallDevelopmentParams;
|
|
19
|
+
/**
|
|
20
|
+
* Key used on the front-end and backend that refers to a specific function for creating models.
|
|
21
|
+
*/
|
|
22
|
+
exports.RUN_DEV_FUNCTION_APP_FUNCTION_KEY = 'dev';
|
|
23
|
+
//# sourceMappingURL=function.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"function.js","sourceRoot":"","sources":["../../../../../../../packages/firebase/src/lib/common/development/function.ts"],"names":[],"mappings":";;;AAmBA;;;;;;GAMG;AACH,SAAgB,uBAAuB,CAAI,SAAiB,EAAE,IAAO;IACnE,MAAM,MAAM,GAA+B;QACzC,SAAS;QACT,IAAI;KACL,CAAC;IAEF,OAAO,MAAM,CAAC;AAChB,CAAC;AAPD,0DAOC;AAED;;GAEG;AACU,QAAA,iCAAiC,GAAG,KAAK,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare type ScheduledFunctionDevelopmentFunctionType = 'list' | 'run';
|
|
2
|
+
export declare enum ScheduledFunctionDevelopmentFunctionTypeEnum {
|
|
3
|
+
LIST = "list",
|
|
4
|
+
RUN = "run"
|
|
5
|
+
}
|
|
6
|
+
export declare class ScheduledFunctionDevelopmentFirebaseFunctionParams {
|
|
7
|
+
type: ScheduledFunctionDevelopmentFunctionTypeEnum;
|
|
8
|
+
/**
|
|
9
|
+
* Name of function to run.
|
|
10
|
+
*/
|
|
11
|
+
run?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare class ScheduledFunctionDevelopmentFirebaseFunctionListEntry {
|
|
14
|
+
name: string;
|
|
15
|
+
}
|
|
16
|
+
export interface ScheduledFunctionDevelopmentFirebaseFunctionListResult {
|
|
17
|
+
readonly type: 'list';
|
|
18
|
+
readonly list: ScheduledFunctionDevelopmentFirebaseFunctionListEntry[];
|
|
19
|
+
}
|
|
20
|
+
export interface ScheduledFunctionDevelopmentFirebaseFunctionRunResult {
|
|
21
|
+
readonly type: 'run';
|
|
22
|
+
readonly success: true;
|
|
23
|
+
}
|
|
24
|
+
export declare type ScheduledFunctionDevelopmentFirebaseFunctionResult = ScheduledFunctionDevelopmentFirebaseFunctionListResult | ScheduledFunctionDevelopmentFirebaseFunctionRunResult;
|
|
25
|
+
/**
|
|
26
|
+
* Key used on the front-end and backend that refers to the specifier for the scheduled functions access.
|
|
27
|
+
*/
|
|
28
|
+
export declare const SCHEDULED_FUNCTION_DEV_FUNCTION_SPECIFIER = "scheduledFunction";
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SCHEDULED_FUNCTION_DEV_FUNCTION_SPECIFIER = exports.ScheduledFunctionDevelopmentFirebaseFunctionListEntry = exports.ScheduledFunctionDevelopmentFirebaseFunctionParams = exports.ScheduledFunctionDevelopmentFunctionTypeEnum = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const class_transformer_1 = require("class-transformer");
|
|
6
|
+
const class_validator_1 = require("class-validator");
|
|
7
|
+
var ScheduledFunctionDevelopmentFunctionTypeEnum;
|
|
8
|
+
(function (ScheduledFunctionDevelopmentFunctionTypeEnum) {
|
|
9
|
+
ScheduledFunctionDevelopmentFunctionTypeEnum["LIST"] = "list";
|
|
10
|
+
ScheduledFunctionDevelopmentFunctionTypeEnum["RUN"] = "run";
|
|
11
|
+
})(ScheduledFunctionDevelopmentFunctionTypeEnum = exports.ScheduledFunctionDevelopmentFunctionTypeEnum || (exports.ScheduledFunctionDevelopmentFunctionTypeEnum = {}));
|
|
12
|
+
class ScheduledFunctionDevelopmentFirebaseFunctionParams {
|
|
13
|
+
}
|
|
14
|
+
tslib_1.__decorate([
|
|
15
|
+
(0, class_transformer_1.Expose)(),
|
|
16
|
+
(0, class_validator_1.IsEnum)(ScheduledFunctionDevelopmentFunctionTypeEnum),
|
|
17
|
+
tslib_1.__metadata("design:type", String)
|
|
18
|
+
], ScheduledFunctionDevelopmentFirebaseFunctionParams.prototype, "type", void 0);
|
|
19
|
+
tslib_1.__decorate([
|
|
20
|
+
(0, class_transformer_1.Expose)(),
|
|
21
|
+
(0, class_validator_1.IsString)(),
|
|
22
|
+
(0, class_validator_1.IsOptional)(),
|
|
23
|
+
tslib_1.__metadata("design:type", String)
|
|
24
|
+
], ScheduledFunctionDevelopmentFirebaseFunctionParams.prototype, "run", void 0);
|
|
25
|
+
exports.ScheduledFunctionDevelopmentFirebaseFunctionParams = ScheduledFunctionDevelopmentFirebaseFunctionParams;
|
|
26
|
+
class ScheduledFunctionDevelopmentFirebaseFunctionListEntry {
|
|
27
|
+
}
|
|
28
|
+
exports.ScheduledFunctionDevelopmentFirebaseFunctionListEntry = ScheduledFunctionDevelopmentFirebaseFunctionListEntry;
|
|
29
|
+
/**
|
|
30
|
+
* Key used on the front-end and backend that refers to the specifier for the scheduled functions access.
|
|
31
|
+
*/
|
|
32
|
+
exports.SCHEDULED_FUNCTION_DEV_FUNCTION_SPECIFIER = 'scheduledFunction';
|
|
33
|
+
//# sourceMappingURL=function.schedule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"function.schedule.js","sourceRoot":"","sources":["../../../../../../../packages/firebase/src/lib/common/development/function.schedule.ts"],"names":[],"mappings":";;;;AAAA,yDAA2C;AAC3C,qDAA2E;AAK3E,IAAY,4CAGX;AAHD,WAAY,4CAA4C;IACtD,6DAAa,CAAA;IACb,2DAAW,CAAA;AACb,CAAC,EAHW,4CAA4C,GAA5C,oDAA4C,KAA5C,oDAA4C,QAGvD;AAED,MAAa,kDAAkD;CAY9D;AATC;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAM,EAAC,4CAA4C,CAAC;;gFACD;AAQpD;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;+EACA;AAXf,gHAYC;AAED,MAAa,qDAAqD;CAGjE;AAHD,sHAGC;AAcD;;GAEG;AACU,QAAA,yCAAyC,GAAG,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./function"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./function.schedule"), exports);
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/firebase/src/lib/common/development/index.ts"],"names":[],"mappings":";;;AAAA,qDAA2B;AAC3B,8DAAoC"}
|
|
@@ -121,6 +121,47 @@ export declare function firestoreModelId(input: FirestoreModelId | FirestoreMode
|
|
|
121
121
|
* @returns
|
|
122
122
|
*/
|
|
123
123
|
export declare function firestoreModelIdsFromKey(input: FirestoreModelKey | DocumentReferenceRef<unknown> | FirestoreModelKeyRef): FirestoreModelId[];
|
|
124
|
+
/**
|
|
125
|
+
* A FirestoreModelKey that has been "flat" to a FirestoreModelId.
|
|
126
|
+
*
|
|
127
|
+
* This is useful in cases where another object's is is derivative from a FirestoreModelKey.
|
|
128
|
+
*
|
|
129
|
+
* All slashes are removed from the object in order to make it a valid FirestoreModelId.
|
|
130
|
+
*/
|
|
131
|
+
export declare type FlatFirestoreModelKey = FirestoreModelId;
|
|
132
|
+
/**
|
|
133
|
+
* A FlatFirestoreModelKey that is encoded in a "one-way" manner by removing all slashes.
|
|
134
|
+
*
|
|
135
|
+
* This is useful for cases where the original ModelKey does not need to be inferred from the flat key.
|
|
136
|
+
*/
|
|
137
|
+
export declare type OneWayFlatFirestoreModelKey = FlatFirestoreModelKey;
|
|
138
|
+
/**
|
|
139
|
+
* Creates a OneWayFlatFirestoreModelKey from the input FirestoreModelKey.
|
|
140
|
+
*
|
|
141
|
+
* @param key
|
|
142
|
+
* @returns
|
|
143
|
+
*/
|
|
144
|
+
export declare function flatFirestoreModelKey(key: FirestoreModelKey): OneWayFlatFirestoreModelKey;
|
|
145
|
+
/**
|
|
146
|
+
* A FlatFirestoreModelKey that is encoded in a "two-way" manner by replacing the slashes with underscores.
|
|
147
|
+
*
|
|
148
|
+
* This is useful for cases where the original ModelKey needs to be inferred from the flat key.
|
|
149
|
+
*/
|
|
150
|
+
export declare type TwoWayFlatFirestoreModelKey = FlatFirestoreModelKey;
|
|
151
|
+
/**
|
|
152
|
+
* Creates a TwoWayFlatFirestoreModelKey from the input FirestoreModelKey.
|
|
153
|
+
*
|
|
154
|
+
* @param key
|
|
155
|
+
* @returns
|
|
156
|
+
*/
|
|
157
|
+
export declare function twoWayFlatFirestoreModelKey(key: FirestoreModelKey): TwoWayFlatFirestoreModelKey;
|
|
158
|
+
/**
|
|
159
|
+
* Creates a TwoWayFlatFirestoreModelKey from the input FirestoreModelKey.
|
|
160
|
+
*
|
|
161
|
+
* @param key
|
|
162
|
+
* @returns
|
|
163
|
+
*/
|
|
164
|
+
export declare function inferKeyFromTwoWayFlatFirestoreModelKey(key: TwoWayFlatFirestoreModelKey): FirestoreModelKey;
|
|
124
165
|
/**
|
|
125
166
|
* Firestore Model Id Regex
|
|
126
167
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.makeFirestoreCollection = exports.readFirestoreModelKey = exports.firestoreModelKeyPartPairs = exports.firestoreModelKeyPairObject = exports.childFirestoreModelKeyPath = exports.firestoreModelKeyPath = exports.firestoreModelKeys = exports.firestoreModelKey = exports.firestoreModelKeyPart = exports.isFirestoreModelKey = exports.FIRESTORE_MODEL_KEY_REGEX_STRICT = exports.FIRESTORE_MODEL_KEY_REGEX = exports.isFirestoreModelId = exports.FIRESTORE_MODEL_ID_REGEX = exports.firestoreModelIdsFromKey = exports.firestoreModelId = exports.firestoreModelType = exports.firestoreModelIdentity = void 0;
|
|
3
|
+
exports.makeFirestoreCollection = exports.readFirestoreModelKey = exports.firestoreModelKeyPartPairs = exports.firestoreModelKeyPairObject = exports.childFirestoreModelKeyPath = exports.firestoreModelKeyPath = exports.firestoreModelKeys = exports.firestoreModelKey = exports.firestoreModelKeyPart = exports.isFirestoreModelKey = exports.FIRESTORE_MODEL_KEY_REGEX_STRICT = exports.FIRESTORE_MODEL_KEY_REGEX = exports.isFirestoreModelId = exports.FIRESTORE_MODEL_ID_REGEX = exports.inferKeyFromTwoWayFlatFirestoreModelKey = exports.twoWayFlatFirestoreModelKey = exports.flatFirestoreModelKey = exports.firestoreModelIdsFromKey = exports.firestoreModelId = exports.firestoreModelType = exports.firestoreModelIdentity = void 0;
|
|
4
4
|
const document_1 = require("../accessor/document");
|
|
5
5
|
const iterator_1 = require("../query/iterator");
|
|
6
6
|
const query_1 = require("../query/query");
|
|
@@ -84,6 +84,36 @@ function firestoreModelIdsFromKey(input) {
|
|
|
84
84
|
return (_a = parts === null || parts === void 0 ? void 0 : parts.map((x) => x.id)) !== null && _a !== void 0 ? _a : [];
|
|
85
85
|
}
|
|
86
86
|
exports.firestoreModelIdsFromKey = firestoreModelIdsFromKey;
|
|
87
|
+
/**
|
|
88
|
+
* Creates a OneWayFlatFirestoreModelKey from the input FirestoreModelKey.
|
|
89
|
+
*
|
|
90
|
+
* @param key
|
|
91
|
+
* @returns
|
|
92
|
+
*/
|
|
93
|
+
function flatFirestoreModelKey(key) {
|
|
94
|
+
return key.replace(/\//g, '');
|
|
95
|
+
}
|
|
96
|
+
exports.flatFirestoreModelKey = flatFirestoreModelKey;
|
|
97
|
+
/**
|
|
98
|
+
* Creates a TwoWayFlatFirestoreModelKey from the input FirestoreModelKey.
|
|
99
|
+
*
|
|
100
|
+
* @param key
|
|
101
|
+
* @returns
|
|
102
|
+
*/
|
|
103
|
+
function twoWayFlatFirestoreModelKey(key) {
|
|
104
|
+
return key.replace(/\//g, '_');
|
|
105
|
+
}
|
|
106
|
+
exports.twoWayFlatFirestoreModelKey = twoWayFlatFirestoreModelKey;
|
|
107
|
+
/**
|
|
108
|
+
* Creates a TwoWayFlatFirestoreModelKey from the input FirestoreModelKey.
|
|
109
|
+
*
|
|
110
|
+
* @param key
|
|
111
|
+
* @returns
|
|
112
|
+
*/
|
|
113
|
+
function inferKeyFromTwoWayFlatFirestoreModelKey(key) {
|
|
114
|
+
return key.replace(/\_/g, '/');
|
|
115
|
+
}
|
|
116
|
+
exports.inferKeyFromTwoWayFlatFirestoreModelKey = inferKeyFromTwoWayFlatFirestoreModelKey;
|
|
87
117
|
/**
|
|
88
118
|
* Firestore Model Id Regex
|
|
89
119
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collection.js","sourceRoot":"","sources":["../../../../../../../../packages/firebase/src/lib/common/firestore/collection/collection.ts"],"names":[],"mappings":";;;AACA,mDAc8B;AAC9B,gDAA0L;AAC1L,0CAA8E;AAE9E,yDAAsG;AACtG,wCAAmH;AA6DnH,SAAgB,sBAAsB,CAA8I,iBAAwB,EAAE,yBAAiC,EAAE,mBAAuB;;IACtQ,IAAI,OAAO,iBAAiB,KAAK,QAAQ,EAAE;QACzC,MAAM,cAAc,GAAG,MAAC,mBAAyB,mCAAM,yBAA+B,CAAC,WAAW,EAAQ,CAAC;QAC3G,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,MAAM,EAAE,iBAAsB;YAC9B,cAAc;YACd,SAAS,EAAE,yBAA8B;SAC1C,CAAC;KACH;SAAM;QACL,MAAM,cAAc,GAAG,MAAC,yBAA+B,mCAAK,iBAAiB,CAAC,WAAW,EAAQ,CAAC;QAClG,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,cAAc;YACd,SAAS,EAAE,iBAAiB;SAC7B,CAAC;KACH;AACH,CAAC;AAjBD,wDAiBC;AAYD;;;;;GAKG;AACH,SAAgB,kBAAkB,CAAC,cAA0D;IAC3F,MAAM,SAAS,GAAG,OAAO,cAAc,KAAK,QAAQ,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,cAAc,CAAC,SAAS,CAA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;aAAM,IAAK,KAAuC,CAAC,WAAW,IAAI,IAAI,EAAE;YACvE,GAAG,GAAI,KAAuC,CAAC,WAAW,CAAC,IAAI,CAAC;SACjE;KACF;SAAM;QACL,GAAG,GAAG,KAAK,CAAC;KACb;IAED,IAAI,CAAC,GAAG,IAAI,QAAQ,EAAE;QACpB,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAC;KACrC;IAED,OAAO,GAAG,CAAC;AACb,CAAC;AAlBD,sDAkBC;AAgDD;;GAEG;AACH,SAAgB,uBAAuB,CAAoC,WAA4C;IACrH,MAAM,MAAM,GAAG,WAAyE,CAAC;IAEzF,MAAM,EAAE,UAAU,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,GAAG,MAAM,CAAC;IACxE,MAAwD,CAAC,SAAS,GAAG,UAAU,CAAC;IAEjF,MAAM,kBAAkB,GAAiD,IAAA,4CAAiC,EAAC,MAAM,CAAC,CAAC;IACnH,MAAM,gBAAgB,GAAmD,IAAA,2CAAgC,EAAC,MAAM,CAAC,CAAC;IAClH,MAAM,YAAY,GAA6B,IAAA,6BAAqB,EAAC,MAAM,CAAC,CAAC;IAE7E,MAAM,yBAAyB,GAAG,IAAA,oDAAyC,EAAC,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,CAAC,CAAC;IAC3H,MAAM,EAAE,aAAa,EAAE,GAAG,IAAA,kDAA+B,EAAC,YAAY,EAAE,yBAAyB,CAAC,CAAC;IACnG,MAAM,EAAE,KAAK,EAAE,GAAG,YAAY,CAAC;IAE/B,qCACE,MAAM;QACN,UAAU,EACV,SAAS,EAAE,UAAU,EACrB,gBAAgB,IACb,yBAAyB,KAC5B,kBAAkB;QAClB,KAAK;QACL,aAAa,IACb;AACJ,CAAC;AAxBD,0DAwBC"}
|
|
1
|
+
{"version":3,"file":"collection.js","sourceRoot":"","sources":["../../../../../../../../packages/firebase/src/lib/common/firestore/collection/collection.ts"],"names":[],"mappings":";;;AACA,mDAc8B;AAC9B,gDAA0L;A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,WAAW,CAAC,IAAI,CAAC;SACjE;KACF;SAAM;QACL,GAAG,GAAG,KAAK,CAAC;KACb;IAED,IAAI,CAAC,GAAG,IAAI,QAAQ,EAAE;QACpB,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAC;KACrC;IAED,OAAO,GAAG,CAAC;AACb,CAAC;AAlBD,sDAkBC;AAgDD;;GAEG;AACH,SAAgB,uBAAuB,CAAoC,WAA4C;IACrH,MAAM,MAAM,GAAG,WAAyE,CAAC;IAEzF,MAAM,EAAE,UAAU,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,GAAG,MAAM,CAAC;IACxE,MAAwD,CAAC,SAAS,GAAG,UAAU,CAAC;IAEjF,MAAM,kBAAkB,GAAiD,IAAA,4CAAiC,EAAC,MAAM,CAAC,CAAC;IACnH,MAAM,gBAAgB,GAAmD,IAAA,2CAAgC,EAAC,MAAM,CAAC,CAAC;IAClH,MAAM,YAAY,GAA6B,IAAA,6BAAqB,EAAC,MAAM,CAAC,CAAC;IAE7E,MAAM,yBAAyB,GAAG,IAAA,oDAAyC,EAAC,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,CAAC,CAAC;IAC3H,MAAM,EAAE,aAAa,EAAE,GAAG,IAAA,kDAA+B,EAAC,YAAY,EAAE,yBAAyB,CAAC,CAAC;IACnG,MAAM,EAAE,KAAK,EAAE,GAAG,YAAY,CAAC;IAE/B,qCACE,MAAM;QACN,UAAU,EACV,SAAS,EAAE,UAAU,EACrB,gBAAgB,IACb,yBAAyB,KAC5B,kBAAkB;QAClB,KAAK;QACL,aAAa,IACb;AACJ,CAAC;AAxBD,0DAwBC"}
|
package/src/lib/common/index.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
tslib_1.__exportStar(require("./auth"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./development"), exports);
|
|
5
6
|
tslib_1.__exportStar(require("./firestore"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./function"), exports);
|
|
7
8
|
tslib_1.__exportStar(require("./model"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/firebase/src/lib/common/index.ts"],"names":[],"mappings":";;;AAAA,iDAAuB;AACvB,sDAA4B;AAC5B,qDAA2B;AAC3B,kDAAwB;AACxB,oDAA0B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/firebase/src/lib/common/index.ts"],"names":[],"mappings":";;;AAAA,iDAAuB;AACvB,wDAA8B;AAC9B,sDAA4B;AAC5B,qDAA2B;AAC3B,kDAAwB;AACxB,oDAA0B"}
|
package/test/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
# [9.10.0](https://github.com/dereekb/dbx-components/compare/v9.9.5-dev...v9.10.0) (2022-10-05)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
5
9
|
## [9.9.5](https://github.com/dereekb/dbx-components/compare/v9.9.4-dev...v9.9.5) (2022-09-19)
|
|
6
10
|
|
|
7
11
|
|
package/test/package.json
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/firebase/test",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.10.0",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"typings": "./src/index.d.ts",
|
|
7
7
|
"dependencies": {},
|
|
8
8
|
"peerDependencies": {
|
|
9
|
-
"@dereekb/util/test": "9.
|
|
10
|
-
"@dereekb/util": "9.
|
|
9
|
+
"@dereekb/util/test": "9.10.0",
|
|
10
|
+
"@dereekb/util": "9.10.0",
|
|
11
11
|
"lodash.isequal": "^4.5.0",
|
|
12
12
|
"make-error": "^1.3.0",
|
|
13
13
|
"class-validator": "^0.13.2",
|
|
14
14
|
"ts-essentials": "^9.1.2",
|
|
15
15
|
"extra-set": "^2.2.11",
|
|
16
|
-
"@dereekb/firebase": "9.
|
|
16
|
+
"@dereekb/firebase": "9.10.0",
|
|
17
17
|
"rxjs": "^7.5.0",
|
|
18
18
|
"firebase": "^9.9.2",
|
|
19
|
-
"@dereekb/rxjs": "9.9.5",
|
|
20
|
-
"ms": "^3.0.0-canary.1",
|
|
21
|
-
"@dereekb/model": "9.9.5",
|
|
22
19
|
"class-transformer": "^0.5.1",
|
|
23
|
-
"@dereekb/
|
|
20
|
+
"@dereekb/rxjs": "9.10.0",
|
|
21
|
+
"ms": "^3.0.0-canary.1",
|
|
22
|
+
"@dereekb/model": "9.10.0",
|
|
23
|
+
"@dereekb/date": "9.10.0",
|
|
24
24
|
"date-fns": "^2.29.0",
|
|
25
25
|
"date-fns-tz": "^1.3.0",
|
|
26
26
|
"rrule": "git+https://git@github.com/dereekb/rrule#2b13b1ea881059ba2ecfec380e12ef244ef54570",
|