pdf-factory 1.1.3 → 1.1.5
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/composition/resolveCompositionConfig.d.ts +10 -8
- package/dist/composition/resolveCompositionConfig.d.ts.map +1 -1
- package/dist/parser.cjs +7 -7
- package/dist/parser.cjs.map +1 -1
- package/dist/parser.js +31 -43
- package/dist/parser.js.map +1 -1
- package/dist/pdf-factory.cjs +1 -1
- package/dist/pdf-factory.cjs.map +1 -1
- package/dist/pdf-factory.js +129 -171
- package/dist/pdf-factory.js.map +1 -1
- package/package.json +3 -3
|
@@ -8,7 +8,8 @@ interface ProviderConfigShape {
|
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
|
-
|
|
11
|
+
/** A tournament record, event or drawDefinition: anything that can hold the factory's `appliedPolicies` extension. */
|
|
12
|
+
interface PolicyElementShape {
|
|
12
13
|
extensions?: {
|
|
13
14
|
name: string;
|
|
14
15
|
value: any;
|
|
@@ -18,17 +19,18 @@ export interface ResolveCompositionConfigParams {
|
|
|
18
19
|
/**
|
|
19
20
|
* Provider config object as delivered to the client at login. The
|
|
20
21
|
* resolver reads `providerConfigSettings.policies.printPolicies[printType]`.
|
|
21
|
-
* Pass `undefined` if no provider context is available
|
|
22
|
-
* resolution starts from the tournament override (or the runtime layer,
|
|
23
|
-
* or the empty config).
|
|
22
|
+
* Pass `undefined` if no provider context is available.
|
|
24
23
|
*/
|
|
25
24
|
providerConfig?: ProviderConfigShape;
|
|
26
25
|
/**
|
|
27
|
-
* The tournament record (as held by tournamentEngine)
|
|
28
|
-
*
|
|
29
|
-
* and reads `extension.value[printType]`.
|
|
26
|
+
* The full tournament record (as held by tournamentEngine), not `getTournamentInfo()` output, which has no
|
|
27
|
+
* `extensions`. The resolver reads its own `appliedPolicies.print[printType]`.
|
|
30
28
|
*/
|
|
31
|
-
tournamentRecord?:
|
|
29
|
+
tournamentRecord?: PolicyElementShape;
|
|
30
|
+
/** The event the print belongs to, if any. Its own `appliedPolicies.print[printType]` overlays the tournament's. */
|
|
31
|
+
event?: PolicyElementShape;
|
|
32
|
+
/** The drawDefinition the print belongs to, if any. Its own print policy overlays the event's. */
|
|
33
|
+
drawDefinition?: PolicyElementShape;
|
|
32
34
|
/**
|
|
33
35
|
* Which print type's config to resolve.
|
|
34
36
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolveCompositionConfig.d.ts","sourceRoot":"","sources":["../../src/composition/resolveCompositionConfig.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"resolveCompositionConfig.d.ts","sourceRoot":"","sources":["../../src/composition/resolveCompositionConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,MAAM,MAAM,SAAS,GAAG,YAAY,CAAC,MAAM,CAAC,CAAC;AAK7C,UAAU,mBAAmB;IAC3B,sBAAsB,CAAC,EAAE;QACvB,QAAQ,CAAC,EAAE;YACT,aAAa,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC;SACxE,CAAC;KACH,CAAC;CACH;AAED,sHAAsH;AACtH,UAAU,kBAAkB;IAC1B,UAAU,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,GAAG,CAAA;KAAE,EAAE,CAAC;CAC7C;AAED,MAAM,WAAW,8BAA8B;IAC7C;;;;OAIG;IACH,cAAc,CAAC,EAAE,mBAAmB,CAAC;IACrC;;;OAGG;IACH,gBAAgB,CAAC,EAAE,kBAAkB,CAAC;IACtC,oHAAoH;IACpH,KAAK,CAAC,EAAE,kBAAkB,CAAC;IAC3B,kGAAkG;IAClG,cAAc,CAAC,EAAE,kBAAkB,CAAC;IACpC;;OAEG;IACH,SAAS,EAAE,SAAS,CAAC;IACrB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC,iBAAiB,CAAC,CAAC;CACtC;AAED,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,8BAA8B,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAY3G"}
|