@o3r/routing 11.6.0-prerelease.41 → 11.6.0-prerelease.43
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/README.md +5 -1
- package/package.json +4 -4
- package/fixtures/jasmine/index.d.ts +0 -2
- package/fixtures/jasmine/index.d.ts.map +0 -1
- package/fixtures/jasmine/o3r-routing-fixtures-jasmine.d.ts.map +0 -1
- package/fixtures/jasmine/request-parameters.fixture.jasmine.d.ts +0 -27
- package/fixtures/jasmine/request-parameters.fixture.jasmine.d.ts.map +0 -1
- package/fixtures/jest/index.d.ts +0 -2
- package/fixtures/jest/index.d.ts.map +0 -1
- package/fixtures/jest/o3r-routing-fixtures-jest.d.ts.map +0 -1
- package/fixtures/jest/request-parameters.fixture.jest.d.ts +0 -27
- package/fixtures/jest/request-parameters.fixture.jest.d.ts.map +0 -1
- package/schematics/ng-add/index.js.map +0 -1
- package/schematics/ng-add/schema.js.map +0 -1
- package/services/index.d.ts +0 -2
- package/services/index.d.ts.map +0 -1
- package/services/request-parameters/index.d.ts +0 -4
- package/services/request-parameters/index.d.ts.map +0 -1
- package/services/request-parameters/request-parameters.config.d.ts +0 -43
- package/services/request-parameters/request-parameters.config.d.ts.map +0 -1
- package/services/request-parameters/request-parameters.module.d.ts +0 -21
- package/services/request-parameters/request-parameters.module.d.ts.map +0 -1
- package/services/request-parameters/request-parameters.service.d.ts +0 -121
- package/services/request-parameters/request-parameters.service.d.ts.map +0 -1
- package/services/request-parameters/request-parameters.token.d.ts +0 -9
- package/services/request-parameters/request-parameters.token.d.ts.map +0 -1
package/README.md
CHANGED
|
@@ -9,6 +9,9 @@ This package is an [Otter Framework Module](https://github.com/AmadeusITGroup/ot
|
|
|
9
9
|
|
|
10
10
|
## Description
|
|
11
11
|
|
|
12
|
+
[](https://www.npmjs.com/package/@o3r/routing)
|
|
13
|
+
[](https://www.npmjs.com/package/@o3r/routing)
|
|
14
|
+
|
|
12
15
|
This module helps you to configure an Otter application's routing
|
|
13
16
|
(POST parameter management, preloading strategy, guard recommendation).
|
|
14
17
|
|
|
@@ -18,7 +21,8 @@ This module helps you to configure an Otter application's routing
|
|
|
18
21
|
ng add @o3r/routing
|
|
19
22
|
```
|
|
20
23
|
|
|
21
|
-
>
|
|
24
|
+
> [!WARNING]
|
|
25
|
+
> This module requires [@o3r/core](https://www.npmjs.com/package/@o3r/core) to be installed.
|
|
22
26
|
|
|
23
27
|
## Description
|
|
24
28
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@o3r/routing",
|
|
3
|
-
"version": "11.6.0-prerelease.
|
|
3
|
+
"version": "11.6.0-prerelease.43",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"@ngrx/entity": "^18.0.0",
|
|
21
21
|
"@ngrx/router-store": "^18.0.0",
|
|
22
22
|
"@ngrx/store": "^18.0.0",
|
|
23
|
-
"@o3r/core": "^11.6.0-prerelease.
|
|
24
|
-
"@o3r/routing": "^11.6.0-prerelease.
|
|
25
|
-
"@o3r/schematics": "^11.6.0-prerelease.
|
|
23
|
+
"@o3r/core": "^11.6.0-prerelease.43",
|
|
24
|
+
"@o3r/routing": "^11.6.0-prerelease.43",
|
|
25
|
+
"@o3r/schematics": "^11.6.0-prerelease.43",
|
|
26
26
|
"@schematics/angular": "^18.2.0",
|
|
27
27
|
"jasmine": "^5.0.0",
|
|
28
28
|
"rxjs": "^7.8.1"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/fixtures/jasmine/index.ts"],"names":[],"mappings":"AAAA,cAAc,sCAAsC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"o3r-routing-fixtures-jasmine.d.ts","sourceRoot":"","sources":["../../../src/fixtures/jasmine/o3r-routing-fixtures-jasmine.ts"],"names":[],"mappings":"AAAA;;GAEG;;AAEH,cAAc,SAAS,CAAC"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/// <reference types="jasmine" />
|
|
2
|
-
import type { InterfaceOf } from '@o3r/core';
|
|
3
|
-
import type { RequestParametersConfig, RequestParametersService } from '@o3r/routing';
|
|
4
|
-
/**
|
|
5
|
-
* Fixture file for requestParameters service
|
|
6
|
-
*/
|
|
7
|
-
export declare class RequestParametersServiceFixture implements InterfaceOf<RequestParametersService> {
|
|
8
|
-
query: {
|
|
9
|
-
[key: string]: string;
|
|
10
|
-
};
|
|
11
|
-
post: {
|
|
12
|
-
[key: string]: string;
|
|
13
|
-
};
|
|
14
|
-
config: RequestParametersConfig;
|
|
15
|
-
getQueryParameter: jasmine.Spy;
|
|
16
|
-
getQueryParameterAsBoolean: jasmine.Spy;
|
|
17
|
-
getPostParameter: jasmine.Spy;
|
|
18
|
-
getPostParameterAsBoolean: jasmine.Spy;
|
|
19
|
-
getParameter: jasmine.Spy;
|
|
20
|
-
getParameterAsBoolean: jasmine.Spy;
|
|
21
|
-
clearQueryParameters: jasmine.Spy;
|
|
22
|
-
clearPostParameters: jasmine.Spy;
|
|
23
|
-
getFilteredParameters: jasmine.Spy;
|
|
24
|
-
getParams: jasmine.Spy;
|
|
25
|
-
constructor();
|
|
26
|
-
}
|
|
27
|
-
//# sourceMappingURL=request-parameters.fixture.jasmine.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"request-parameters.fixture.jasmine.d.ts","sourceRoot":"","sources":["../../../src/fixtures/jasmine/request-parameters.fixture.jasmine.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,KAAK,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC;AAGtF;;GAEG;AACH,qBAAa,+BAAgC,YAAW,WAAW,CAAC,wBAAwB,CAAC;IACpF,KAAK,EAAE;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAC,CAAM;IACpC,IAAI,EAAE;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAC,CAAM;IACnC,MAAM,EAAE,uBAAuB,CAKpC;IAEK,iBAAiB,EAAE,OAAO,CAAC,GAAG,CAAC;IAC/B,0BAA0B,EAAE,OAAO,CAAC,GAAG,CAAC;IACxC,gBAAgB,EAAE,OAAO,CAAC,GAAG,CAAC;IAC9B,yBAAyB,EAAE,OAAO,CAAC,GAAG,CAAC;IACvC,YAAY,EAAE,OAAO,CAAC,GAAG,CAAC;IAC1B,qBAAqB,EAAE,OAAO,CAAC,GAAG,CAAC;IACnC,oBAAoB,EAAE,OAAO,CAAC,GAAG,CAAC;IAClC,mBAAmB,EAAE,OAAO,CAAC,GAAG,CAAC;IACjC,qBAAqB,EAAE,OAAO,CAAC,GAAG,CAAC;IACnC,SAAS,EAAE,OAAO,CAAC,GAAG,CAAC;;CAc/B"}
|
package/fixtures/jest/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/fixtures/jest/index.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"o3r-routing-fixtures-jest.d.ts","sourceRoot":"","sources":["../../../src/fixtures/jest/o3r-routing-fixtures-jest.ts"],"names":[],"mappings":"AAAA;;GAEG;;AAEH,cAAc,SAAS,CAAC"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/// <reference types="jest" />
|
|
2
|
-
import type { InterfaceOf } from '@o3r/core';
|
|
3
|
-
import type { RequestParametersConfig, RequestParametersService } from '@o3r/routing';
|
|
4
|
-
/**
|
|
5
|
-
* Fixture file for requestParameters service
|
|
6
|
-
*/
|
|
7
|
-
export declare class RequestParametersServiceFixture implements InterfaceOf<RequestParametersService> {
|
|
8
|
-
query: {
|
|
9
|
-
[key: string]: string;
|
|
10
|
-
};
|
|
11
|
-
post: {
|
|
12
|
-
[key: string]: string;
|
|
13
|
-
};
|
|
14
|
-
config: RequestParametersConfig;
|
|
15
|
-
getQueryParameter: jest.Mock<any, any>;
|
|
16
|
-
getQueryParameterAsBoolean: jest.Mock<any, any>;
|
|
17
|
-
getPostParameter: jest.Mock<any, any>;
|
|
18
|
-
getPostParameterAsBoolean: jest.Mock<any, any>;
|
|
19
|
-
getParameter: jest.Mock<any, any>;
|
|
20
|
-
getParameterAsBoolean: jest.Mock<any, any>;
|
|
21
|
-
clearQueryParameters: jest.Mock<any, any>;
|
|
22
|
-
clearPostParameters: jest.Mock<any, any>;
|
|
23
|
-
getFilteredParameters: jest.Mock<any, any>;
|
|
24
|
-
getParams: jest.Mock<any, any>;
|
|
25
|
-
constructor();
|
|
26
|
-
}
|
|
27
|
-
//# sourceMappingURL=request-parameters.fixture.jest.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"request-parameters.fixture.jest.d.ts","sourceRoot":"","sources":["../../../src/fixtures/jest/request-parameters.fixture.jest.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,KAAK,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC;AAItF;;GAEG;AACH,qBAAa,+BAAgC,YAAW,WAAW,CAAC,wBAAwB,CAAC;IACpF,KAAK,EAAE;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAC,CAAM;IACpC,IAAI,EAAE;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAC,CAAM;IACnC,MAAM,EAAE,uBAAuB,CAKpC;IAEK,iBAAiB,EAAE,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IACvC,0BAA0B,EAAE,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IAChD,gBAAgB,EAAE,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IACtC,yBAAyB,EAAE,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IAC/C,YAAY,EAAE,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IAClC,qBAAqB,EAAE,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IAC3C,oBAAoB,EAAE,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IAC1C,mBAAmB,EAAE,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IACzC,qBAAqB,EAAE,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IAC3C,SAAS,EAAE,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;;CAcvC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":";;;AAEA,kCAAkC;AAClC,gDAIyB;AAEzB,MAAM,eAAe,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC;AAE5E;;;GAGG;AACH,SAAS,OAAO,CAAC,OAA8B;IAC7C,OAAO,CAAC,IAAI,EAAE,EAAE;QACd,OAAO,IAAA,8BAAiB,EAAC;YACvB,WAAW,EAAE,OAAO,CAAC,WAAW;YAChC,YAAY,EAAE,IAAA,oCAAuB,EAAC,eAAe,EAAE,IAAI,EAAE,OAAO,CAAC,WAAW,EAAE,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,eAAe,CAAC;SACpH,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AAED;;;GAGG;AACI,MAAM,KAAK,GAAG,CAAC,OAA8B,EAAQ,EAAE,CAAC,IAAA,kDAAqC,EAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC;AAA1G,QAAA,KAAK,SAAqG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../schematics/ng-add/schema.ts"],"names":[],"mappings":""}
|
package/services/index.d.ts
DELETED
package/services/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/services/request-parameters/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC"}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Strategies available to read / write data in the RequestParameters service.
|
|
3
|
-
* Rehydrate: if the storage already have data, those will be used by the service, ignoring new data. Otherwise set the storage
|
|
4
|
-
* Merge: storage data will be merged with the ones provided. (provided data has priority)
|
|
5
|
-
* Replace: storage data will be completely replaced by the ones provided
|
|
6
|
-
* ReplaceIfNotEmpty: If no parameters are provided, use the content from storage. Otherwise use the ones provided and update the storage with them.
|
|
7
|
-
*
|
|
8
|
-
* @deprecated use StorageStrategy from @o3r/dynamic-content instead, will be removed in v10
|
|
9
|
-
*/
|
|
10
|
-
export declare enum StorageStrategy {
|
|
11
|
-
Rehydrate = 0,
|
|
12
|
-
Merge = 1,
|
|
13
|
-
Replace = 2,
|
|
14
|
-
ReplaceIfNotEmpty = 3
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Configuration used by a user to feed the request parameters service.
|
|
18
|
-
*
|
|
19
|
-
* @deprecated use RequestParametersConfig from @o3r/dynamic-content instead, will be removed in v10
|
|
20
|
-
*/
|
|
21
|
-
export interface RequestParametersConfig {
|
|
22
|
-
/**
|
|
23
|
-
* Strategy used by the RequestParameters Service. See StorageStrategy for more info
|
|
24
|
-
*/
|
|
25
|
-
strategy: StorageStrategy;
|
|
26
|
-
/**
|
|
27
|
-
* Storage used by the RequestParameters service
|
|
28
|
-
*/
|
|
29
|
-
storage?: Storage;
|
|
30
|
-
/**
|
|
31
|
-
* Value of the DOM element containing your query parameters (e.g. `document.body.dataset.query`)
|
|
32
|
-
*/
|
|
33
|
-
queryParamsValue: string;
|
|
34
|
-
/**
|
|
35
|
-
* Value of the DOM element containing your post parameters (e.g. `document.body.dataset.post`)
|
|
36
|
-
*/
|
|
37
|
-
postParamsValue: string;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* @deprecated use defaultRequestParametersConfig from @o3r/dynamic-content instead, will be removed in v10
|
|
41
|
-
*/
|
|
42
|
-
export declare const defaultRequestParametersConfig: RequestParametersConfig;
|
|
43
|
-
//# sourceMappingURL=request-parameters.config.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"request-parameters.config.d.ts","sourceRoot":"","sources":["../../../src/services/request-parameters/request-parameters.config.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,oBAAY,eAAe;IAEzB,SAAS,IAAI;IAEb,KAAK,IAAI;IAET,OAAO,IAAI;IAEX,iBAAiB,IAAI;CACtB;AAED;;;;GAIG;AACH,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,QAAQ,EAAE,eAAe,CAAC;IAC1B;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;CACzB;AAED;;GAEG;AACH,eAAO,MAAM,8BAA8B,EAAE,uBAK5C,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
-
import { RequestParametersConfig } from './request-parameters.config';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* Empty configuration factory, used when config is not provided. It needs a separate function for AOT.
|
|
6
|
-
*
|
|
7
|
-
* @deprecated use defaultConfigFactory from @o3r/dynamic-content instead, will be removed in v10
|
|
8
|
-
*/
|
|
9
|
-
export declare function defaultConfigFactory(): {};
|
|
10
|
-
/**
|
|
11
|
-
* RequestParametersService Module
|
|
12
|
-
*
|
|
13
|
-
* @deprecated use RequestParametersModule from @o3r/dynamic-content instead, will be removed in v10
|
|
14
|
-
*/
|
|
15
|
-
export declare class RequestParametersModule {
|
|
16
|
-
static forRoot(config?: () => Partial<RequestParametersConfig>): ModuleWithProviders<RequestParametersModule>;
|
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RequestParametersModule, never>;
|
|
18
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<RequestParametersModule, never, never, never>;
|
|
19
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<RequestParametersModule>;
|
|
20
|
-
}
|
|
21
|
-
//# sourceMappingURL=request-parameters.module.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"request-parameters.module.d.ts","sourceRoot":"","sources":["../../../src/services/request-parameters/request-parameters.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAW,MAAM,eAAe,CAAC;AAK5D,OAAO,EAAC,uBAAuB,EAAC,MAAM,6BAA6B,CAAC;;AAEpE;;;;GAIG;AACH,wBAAgB,oBAAoB,OAEnC;AACD;;;;GAIG;AACH,qBAUa,uBAAuB;WACpB,OAAO,CAAC,MAAM,GAAE,MAAM,OAAO,CAAC,uBAAuB,CAAwB,GAAG,mBAAmB,CAAC,uBAAuB,CAAC;yCAD/H,uBAAuB;0CAAvB,uBAAuB;0CAAvB,uBAAuB;CAanC"}
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import { RequestParametersConfig } from './request-parameters.config';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
/**
|
|
4
|
-
* @deprecated use ParamsList from @o3r/dynamic-content instead, will be removed in v10
|
|
5
|
-
*/
|
|
6
|
-
export type ParamsList = 'query' | 'post';
|
|
7
|
-
/**
|
|
8
|
-
* @deprecated use ParamsType from @o3r/dynamic-content instead, will be removed in v10
|
|
9
|
-
*/
|
|
10
|
-
export type ParamsType = {
|
|
11
|
-
[k in ParamsList]: {
|
|
12
|
-
[key: string]: string;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
* Partial configuration for RequestParameters Service
|
|
17
|
-
*
|
|
18
|
-
* @deprecated use PartialRequestParametersConfig from @o3r/dynamic-content instead, will be removed in v10
|
|
19
|
-
*/
|
|
20
|
-
export interface PartialRequestParametersConfig extends Partial<RequestParametersConfig> {
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Service used to store the request parameters of your requests so that subsequent calls or refresh the page will preserve
|
|
24
|
-
* them.
|
|
25
|
-
*
|
|
26
|
-
* @deprecated use RequestParametersService from @o3r/dynamic-content instead, will be removed in v10
|
|
27
|
-
*/
|
|
28
|
-
export declare class RequestParametersService implements ParamsType {
|
|
29
|
-
private _query;
|
|
30
|
-
private _post;
|
|
31
|
-
private config;
|
|
32
|
-
constructor(config: PartialRequestParametersConfig);
|
|
33
|
-
/**
|
|
34
|
-
* Depending on the strategy, set the internal values for the parameters.
|
|
35
|
-
* See StorageStrategy for more info.
|
|
36
|
-
*
|
|
37
|
-
* @param key
|
|
38
|
-
* @param value
|
|
39
|
-
*/
|
|
40
|
-
private setParameters;
|
|
41
|
-
/**
|
|
42
|
-
* Get all the query parameters in a map.
|
|
43
|
-
*/
|
|
44
|
-
get query(): {
|
|
45
|
-
[key: string]: string;
|
|
46
|
-
};
|
|
47
|
-
/**
|
|
48
|
-
* Get all the post parameters in a map.
|
|
49
|
-
*/
|
|
50
|
-
get post(): {
|
|
51
|
-
[key: string]: string;
|
|
52
|
-
};
|
|
53
|
-
/**
|
|
54
|
-
* Get a specific query parameter value, given the key.
|
|
55
|
-
*
|
|
56
|
-
* @param key
|
|
57
|
-
*/
|
|
58
|
-
getQueryParameter(key: string): string | undefined;
|
|
59
|
-
/**
|
|
60
|
-
* Get a specific query parameter value as boolean, given the key.
|
|
61
|
-
*
|
|
62
|
-
* @param key
|
|
63
|
-
*/
|
|
64
|
-
getQueryParameterAsBoolean(key: string): boolean | undefined;
|
|
65
|
-
/**
|
|
66
|
-
* Get a specific post parameter value, given the key.
|
|
67
|
-
*
|
|
68
|
-
* @param key
|
|
69
|
-
*/
|
|
70
|
-
getPostParameter(key: string): string | undefined;
|
|
71
|
-
/**
|
|
72
|
-
* Get a specific post parameter value as boolean, given the key.
|
|
73
|
-
*
|
|
74
|
-
* @param key
|
|
75
|
-
*/
|
|
76
|
-
getPostParameterAsBoolean(key: string): boolean | undefined;
|
|
77
|
-
/**
|
|
78
|
-
* Get a specific parameter value, given the key.
|
|
79
|
-
*
|
|
80
|
-
* @param key
|
|
81
|
-
*/
|
|
82
|
-
getParameter(key: string): string | undefined;
|
|
83
|
-
/**
|
|
84
|
-
* Get a specific parameter value as boolean, given the key.
|
|
85
|
-
*
|
|
86
|
-
* @param key
|
|
87
|
-
*/
|
|
88
|
-
getParameterAsBoolean(key: string): boolean | undefined;
|
|
89
|
-
/**
|
|
90
|
-
* Clear GET parameters from the storage
|
|
91
|
-
*
|
|
92
|
-
* @param paramsToClear the list on key that you want to clear in get parameters
|
|
93
|
-
*/
|
|
94
|
-
clearQueryParameters(paramsToClear?: string[]): void;
|
|
95
|
-
/**
|
|
96
|
-
* Clear POST parameters from the storage
|
|
97
|
-
*
|
|
98
|
-
* @param paramsToClear the list on key that you want to clean in post parameters
|
|
99
|
-
*/
|
|
100
|
-
clearPostParameters(paramsToClear?: string[]): void;
|
|
101
|
-
/**
|
|
102
|
-
* Get all the parameters in a map.
|
|
103
|
-
*
|
|
104
|
-
* @param priority the parameter to be given priority in case same key is in get and post params.
|
|
105
|
-
*/
|
|
106
|
-
getParams(priority?: ParamsList): {
|
|
107
|
-
[x: string]: string;
|
|
108
|
-
};
|
|
109
|
-
/**
|
|
110
|
-
* Filter Parameters(both Query/POST) from the storage
|
|
111
|
-
*
|
|
112
|
-
* @param paramstoFilter the list on key that you want to filter from parameters
|
|
113
|
-
* @param priority the priorty of the parameter type(POST/Query)
|
|
114
|
-
*/
|
|
115
|
-
getFilteredParameters(paramstoFilter?: string[], priority?: ParamsList): {
|
|
116
|
-
[x: string]: string;
|
|
117
|
-
};
|
|
118
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RequestParametersService, never>;
|
|
119
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<RequestParametersService>;
|
|
120
|
-
}
|
|
121
|
-
//# sourceMappingURL=request-parameters.service.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"request-parameters.service.d.ts","sourceRoot":"","sources":["../../../src/services/request-parameters/request-parameters.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAiC,uBAAuB,EAAkB,MAAM,6BAA6B,CAAC;;AAIrH;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,MAAM,CAAC;AAE1C;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG;KAAE,CAAC,IAAI,UAAU,GAAG;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAC;CAAC,CAAC;AAEtE;;;;GAIG;AACH,MAAM,WAAW,8BAA+B,SAAQ,OAAO,CAAC,uBAAuB,CAAC;CAAG;AAE3F;;;;;GAKG;AACH,qBACa,wBAAyB,YAAW,UAAU;IACzD,OAAO,CAAC,MAAM,CAA+B;IAC7C,OAAO,CAAC,KAAK,CAA+B;IAE5C,OAAO,CAAC,MAAM,CAA0B;gBAEa,MAAM,EAAE,8BAA8B;IAU3F;;;;;;OAMG;IACH,OAAO,CAAC,aAAa;IAuCrB;;OAEG;IACH,IAAW,KAAK;;MAEf;IAED;;OAEG;IACH,IAAW,IAAI;;MAEd;IAED;;;;OAIG;IACI,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;IAIzD;;;;OAIG;IACI,0BAA0B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS;IAKnE;;;;OAIG;IACI,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;IAIxD;;;;OAIG;IACI,yBAAyB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS;IAKlE;;;;OAIG;IACI,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;IAIpD;;;;OAIG;IACI,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS;IAK9D;;;;OAIG;IACI,oBAAoB,CAAC,aAAa,CAAC,EAAE,MAAM,EAAE;IAYpD;;;;OAIG;IACI,mBAAmB,CAAC,aAAa,CAAC,EAAE,MAAM,EAAE;IAYnD;;;;OAIG;IACI,SAAS,CAAC,QAAQ,GAAE,UAAoB;;;IAI/C;;;;;OAKG;IACI,qBAAqB,CAAC,cAAc,CAAC,EAAE,MAAM,EAAE,EAAE,QAAQ,GAAE,UAAoB;;;yCAtL3E,wBAAwB;6CAAxB,wBAAwB;CAkMpC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import { RequestParametersConfig } from './request-parameters.config';
|
|
3
|
-
/**
|
|
4
|
-
* Token to be provided in case of service customization needs.
|
|
5
|
-
*
|
|
6
|
-
* @deprecated use REQUEST_PARAMETERS_CONFIG_TOKEN from @o3r/dynamic-content instead, will be removed in v10
|
|
7
|
-
*/
|
|
8
|
-
export declare const REQUEST_PARAMETERS_CONFIG_TOKEN: InjectionToken<Partial<RequestParametersConfig>>;
|
|
9
|
-
//# sourceMappingURL=request-parameters.token.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"request-parameters.token.d.ts","sourceRoot":"","sources":["../../../src/services/request-parameters/request-parameters.token.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAEtE;;;;GAIG;AACH,eAAO,MAAM,+BAA+B,kDAAyH,CAAC"}
|