@uniformdev/context 15.0.0 → 16.0.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/LICENSE.txt +2 -2
- package/dist/api/api.d.ts +7 -5
- package/dist/api/api.js +2 -2
- package/dist/api/api.mjs +2 -1
- package/dist/cli/cli.d.ts +2 -2
- package/dist/cli/cli.js +50 -50
- package/dist/cli/cli.mjs +52 -51
- package/dist/contextTypes-572b0d33.d.ts +1 -1
- package/dist/index.d.ts +12 -4
- package/dist/index.esm.js +3 -3
- package/dist/index.js +3 -3
- package/dist/index.mjs +3 -3
- package/dist/{types-5f88cc63.d.ts → types-c12d92cd.d.ts} +2 -2
- package/package.json +4 -4
- package/dist/chunk-5UOAJNMX.mjs +0 -2
- package/dist/chunk-AFJ7PNM5.mjs +0 -1
- package/dist/chunk-CEKV2MHL.mjs +0 -1
package/LICENSE.txt
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
©
|
2
|
-
See details of Uniform Systems, Inc. Master Subscription Agreement here: https://uniform.dev/eula
|
1
|
+
© 2022 Uniform Systems, Inc. All Rights Reserved.
|
2
|
+
See details of Uniform Systems, Inc. Master Subscription Agreement here: https://uniform.dev/eula
|
package/dist/api/api.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
import { a as AggregateGetParameters, b as AggregateGetResponse, c as AggregatePutParameters, d as AggregateDeleteParameters, D as DimensionGetParameters, e as DimensionGetResponse, f as EnrichmentGetParameters, g as EnrichmentGetResponse, h as EnrichmentPutParameters, i as EnrichmentDeleteParameters, j as EnrichmentValuePutParameters, k as EnrichmentValueDeleteParameters, M as ManifestGetParameters, l as ManifestGetResponse, m as QuirkGetParameters, n as QuirkGetResponse, o as QuirkPutParameters, p as QuirkDeleteParameters, q as SignalGetParameters, r as SignalGetResponse, s as SignalPutParameters, t as SignalDeleteParameters, u as TestGetParameters, v as TestGetResponse, w as TestPutParameters, x as TestDeleteParameters, y as DimensionDefinition } from '../contextTypes-572b0d33';
|
2
|
-
export { A as Aggregate, d as AggregateDeleteParameters, a as AggregateGetParameters, b as AggregateGetResponse, c as AggregatePutParameters, C as CookieCriteria, I as CurrentPageCriteria, y as DimensionDefinition, D as DimensionGetParameters, e as DimensionGetResponse, z as EnrichmentCategory, E as EnrichmentCategoryWithValues, i as EnrichmentDeleteParameters, f as EnrichmentGetParameters, g as EnrichmentGetResponse, h as EnrichmentPutParameters, B as EnrichmentValue, k as EnrichmentValueDeleteParameters, j as EnrichmentValuePutParameters, H as EventCriteria, M as ManifestGetParameters, l as ManifestGetResponse, P as PageViewCountCriteria, F as QueryStringCriteria, Q as Quirk, G as QuirkCriteria, p as QuirkDeleteParameters, m as QuirkGetParameters, n as QuirkGetResponse, o as QuirkPutParameters, R as RootSignalCriteriaGroup, t as SignalDeleteParameters, q as SignalGetParameters, r as SignalGetResponse, s as SignalPutParameters, S as SignalWithId, T as Test, x as TestDeleteParameters, u as TestGetParameters, v as TestGetResponse, w as TestPutParameters } from '../contextTypes-572b0d33';
|
3
|
-
import { g as ManifestV2 } from '../types-
|
4
|
-
import '../v2-manifest.swagger-ff2af13e';
|
1
|
+
import { a as AggregateGetParameters, b as AggregateGetResponse, c as AggregatePutParameters, d as AggregateDeleteParameters, D as DimensionGetParameters, e as DimensionGetResponse, f as EnrichmentGetParameters, g as EnrichmentGetResponse, h as EnrichmentPutParameters, i as EnrichmentDeleteParameters, j as EnrichmentValuePutParameters, k as EnrichmentValueDeleteParameters, M as ManifestGetParameters, l as ManifestGetResponse, m as QuirkGetParameters, n as QuirkGetResponse, o as QuirkPutParameters, p as QuirkDeleteParameters, q as SignalGetParameters, r as SignalGetResponse, s as SignalPutParameters, t as SignalDeleteParameters, u as TestGetParameters, v as TestGetResponse, w as TestPutParameters, x as TestDeleteParameters, y as DimensionDefinition } from '../contextTypes-572b0d33.js';
|
2
|
+
export { A as Aggregate, d as AggregateDeleteParameters, a as AggregateGetParameters, b as AggregateGetResponse, c as AggregatePutParameters, C as CookieCriteria, I as CurrentPageCriteria, y as DimensionDefinition, D as DimensionGetParameters, e as DimensionGetResponse, z as EnrichmentCategory, E as EnrichmentCategoryWithValues, i as EnrichmentDeleteParameters, f as EnrichmentGetParameters, g as EnrichmentGetResponse, h as EnrichmentPutParameters, B as EnrichmentValue, k as EnrichmentValueDeleteParameters, j as EnrichmentValuePutParameters, H as EventCriteria, M as ManifestGetParameters, l as ManifestGetResponse, P as PageViewCountCriteria, F as QueryStringCriteria, Q as Quirk, G as QuirkCriteria, p as QuirkDeleteParameters, m as QuirkGetParameters, n as QuirkGetResponse, o as QuirkPutParameters, R as RootSignalCriteriaGroup, t as SignalDeleteParameters, q as SignalGetParameters, r as SignalGetResponse, s as SignalPutParameters, S as SignalWithId, T as Test, x as TestDeleteParameters, u as TestGetParameters, v as TestGetResponse, w as TestPutParameters } from '../contextTypes-572b0d33.js';
|
3
|
+
import { g as ManifestV2 } from '../types-c12d92cd.js';
|
4
|
+
import '../v2-manifest.swagger-ff2af13e.js';
|
5
5
|
import 'mitt';
|
6
6
|
|
7
7
|
declare type LimitPolicy = <ReturnValue>(func: () => Promise<ReturnValue>) => Promise<ReturnValue>;
|
@@ -30,7 +30,8 @@ declare class ApiClientError extends Error {
|
|
30
30
|
fetchUri: string;
|
31
31
|
statusCode?: number | undefined;
|
32
32
|
statusText?: string | undefined;
|
33
|
-
|
33
|
+
requestId?: string | undefined;
|
34
|
+
constructor(errorMessage: string, fetchMethod: string, fetchUri: string, statusCode?: number | undefined, statusText?: string | undefined, requestId?: string | undefined);
|
34
35
|
}
|
35
36
|
|
36
37
|
declare class ApiClient {
|
@@ -41,6 +42,7 @@ declare class ApiClient {
|
|
41
42
|
expectNoContent?: boolean;
|
42
43
|
}): Promise<TResponse>;
|
43
44
|
protected createUrl(path: string, queryParams?: Record<string, string | boolean | undefined | null | number>): URL;
|
45
|
+
private static getRequestId;
|
44
46
|
}
|
45
47
|
|
46
48
|
declare class AggregateClient extends ApiClient {
|
package/dist/api/api.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
var
|
2
|
-
${
|
1
|
+
var S=Object.defineProperty;var Q=Object.getOwnPropertyDescriptor;var H=Object.getOwnPropertyNames;var K=Object.prototype.hasOwnProperty;var q=(r,e,t)=>e in r?S(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var z=(r,e)=>{for(var t in e)S(r,t,{get:e[t],enumerable:!0})},B=(r,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of H(e))!K.call(r,n)&&n!==t&&S(r,n,{get:()=>e[n],enumerable:!(i=Q(e,n))||i.enumerable});return r};var Y=r=>B(S({},"__esModule",{value:!0}),r);var u=(r,e,t)=>(q(r,typeof e!="symbol"?e+"":e,t),t),F=(r,e,t)=>{if(!e.has(r))throw TypeError("Cannot "+t)};var s=(r,e,t)=>(F(r,e,"read from private field"),t?t.call(r):e.get(r)),p=(r,e,t)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,t)};var Z={};z(Z,{AggregateClient:()=>f,ApiClientError:()=>h,ContextClient:()=>$,DimensionClient:()=>d,EnrichmentClient:()=>g,ManifestClient:()=>E,QuirkClient:()=>j,SignalClient:()=>U,computeDimensionDefinitionDisplayData:()=>V,computeDimensionDisplayData:()=>W,computeDimensionDisplayName:()=>X,nullLimitPolicy:()=>L});module.exports=Y(Z);var L=async r=>await r(),h=class extends Error{constructor(t,i,n,a,c,m){super(`${t}
|
2
|
+
${a}${c?" "+c:""} (${i} ${n}${m?` Request ID: ${m}`:""})`);this.errorMessage=t;this.fetchMethod=i;this.fetchUri=n;this.statusCode=a;this.statusText=c;this.requestId=m;Object.setPrototypeOf(this,h.prototype)}};var o=class{constructor(e){u(this,"options");var t,i,n,a,c,m;if(!e.apiKey&&!e.bearerToken)throw new Error("You must provide an API key or a bearer token");this.options={...e,fetch:(t=e.fetch)!=null?t:fetch,apiHost:(i=e.apiHost)!=null?i:"https://uniform.app",apiKey:(n=e.apiKey)!=null?n:null,projectId:(a=e.projectId)!=null?a:null,bearerToken:(c=e.bearerToken)!=null?c:null,limitPolicy:(m=e.limitPolicy)!=null?m:L}}async apiClient(e,t){return this.options.limitPolicy(async()=>{var a;let i=this.options.apiKey?{"x-api-key":this.options.apiKey}:{Authorization:`Bearer ${this.options.bearerToken}`},n=await fetch(e.toString(),{...t,headers:{...t==null?void 0:t.headers,...i}});if(!n.ok){let c="";try{let m=await n.text();try{let I=JSON.parse(m);I.errorMessage?c=Array.isArray(I.errorMessage)?I.errorMessage.join(", "):I.errorMessage:c=m}catch(I){c=m}}catch(m){c="General error"}throw new h(c,(a=t==null?void 0:t.method)!=null?a:"GET",e.toString(),n.status,n.statusText,o.getRequestId(n))}return t!=null&&t.expectNoContent?null:await n.json()})}createUrl(e,t){let i=new URL(`${this.options.apiHost}${e}`);return Object.entries(t!=null?t:{}).forEach(([n,a])=>{var c;typeof a!="undefined"&&a!==null&&i.searchParams.append(n,(c=a==null?void 0:a.toString())!=null?c:"")}),i}static getRequestId(e){let t=e.headers.get("x-nf-request-id");if(t)return t}};var P,T=class extends o{constructor(e){super(e)}async get(e){let{projectId:t}=this.options,i=this.createUrl(s(T,P),{...e,projectId:t});return await this.apiClient(i)}async upsert(e){let t=this.createUrl(s(T,P));await this.apiClient(t,{method:"PUT",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}async remove(e){let t=this.createUrl(s(T,P));await this.apiClient(t,{method:"DELETE",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}},f=T;P=new WeakMap,p(f,P,"/api/v2/aggregate");var A,v=class extends o{constructor(e){super(e)}async get(e){let{projectId:t}=this.options,i=this.createUrl(s(v,A),{...e,projectId:t});return await this.apiClient(i)}},d=v;A=new WeakMap,p(d,A,"/api/v2/dimension");var x,O,y=class extends o{constructor(e){super(e)}async get(e){let{projectId:t}=this.options,i=this.createUrl(s(y,x),{...e,projectId:t});return await this.apiClient(i)}async upsertCategory(e){let t=this.createUrl(s(y,x));await this.apiClient(t,{method:"PUT",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}async removeCategory(e){let t=this.createUrl(s(y,x));await this.apiClient(t,{method:"DELETE",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}async upsertValue(e){let t=this.createUrl(s(y,O));await this.apiClient(t,{method:"PUT",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}async removeValue(e){let t=this.createUrl(s(y,O));await this.apiClient(t,{method:"DELETE",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}},g=y;x=new WeakMap,O=new WeakMap,p(g,x,"/api/v1/enrichments"),p(g,O,"/api/v1/enrichment-values");var k,J=class extends o{constructor(e){super(e)}async get(e){let{projectId:t}=this.options,i=this.createUrl(s(J,k),{...e,projectId:t});return await this.apiClient(i)}},E=J;k=new WeakMap,p(E,k,"/api/v2/manifest");var C,G=class extends o{constructor(e){super(e)}async get(e){let{projectId:t}=this.options,i=this.createUrl(s(G,C),{...e,projectId:t});return await this.apiClient(i)}async upsert(e){let t=this.createUrl(s(G,C));await this.apiClient(t,{method:"PUT",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}async remove(e){let t=this.createUrl(s(G,C));await this.apiClient(t,{method:"DELETE",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}},j=G;C=new WeakMap,p(j,C,"/api/v2/quirk");var D,w=class extends o{constructor(e){super(e)}async get(e){let{projectId:t}=this.options,i=this.createUrl(s(w,D),{...e,projectId:t});return await this.apiClient(i)}async upsert(e){let t=this.createUrl(s(w,D));await this.apiClient(t,{method:"PUT",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}async remove(e){let t=this.createUrl(s(w,D));await this.apiClient(t,{method:"DELETE",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}},U=w;D=new WeakMap,p(U,D,"/api/v2/signal");var R,N=class extends o{constructor(e){super(e)}async get(e){let{projectId:t}=this.options,i=this.createUrl(s(N,R),{...e,projectId:t});return await this.apiClient(i)}async upsert(e){let t=this.createUrl(s(N,R));await this.apiClient(t,{method:"PUT",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}async remove(e){let t=this.createUrl(s(N,R));await this.apiClient(t,{method:"DELETE",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}},b=N;R=new WeakMap,p(b,R,"/api/v2/test");var $=class{constructor(e){u(this,"enrichments");u(this,"aggregates");u(this,"dimensions");u(this,"manifest");u(this,"quirks");u(this,"signals");u(this,"tests");this.enrichments=new g(e),this.aggregates=new f(e),this.dimensions=new d(e),this.manifest=new E(e),this.quirks=new j(e),this.signals=new U(e),this.tests=new b(e)}};var M="_";function V(r){let e=r.category==="ENR"?"Enrichment":r.category==="SIG"?"Signal":r.subcategory==="1"?"Intent":r.subcategory==="0"?"Audience":"Aggregate";return{dim:r.dim,name:r.name,type:e,category:r.category==="ENR"?r.subcategory:void 0}}function W(r,e){var t,i,n,a;if((i=(t=e.project.pz)==null?void 0:t.agg)!=null&&i[r])return{dim:r,name:r,type:"Aggregate"};if((a=(n=e.project.pz)==null?void 0:n.sig)!=null&&a[r])return{dim:r,name:r,type:"Signal"};if(r.indexOf(M)>=0){let[c,m]=r.split(M);return{dim:r,name:m,type:"Enrichment",category:c}}}function X(r){let{type:e,name:t}=V(r);return`${e}: ${t}`}0&&(module.exports={AggregateClient,ApiClientError,ContextClient,DimensionClient,EnrichmentClient,ManifestClient,QuirkClient,SignalClient,computeDimensionDefinitionDisplayData,computeDimensionDisplayData,computeDimensionDisplayName,nullLimitPolicy});
|
package/dist/api/api.mjs
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
|
1
|
+
var V=Object.defineProperty;var Q=(r,e,t)=>e in r?V(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var h=(r,e,t)=>(Q(r,typeof e!="symbol"?e+"":e,t),t),H=(r,e,t)=>{if(!e.has(r))throw TypeError("Cannot "+t)};var s=(r,e,t)=>(H(r,e,"read from private field"),t?t.call(r):e.get(r)),p=(r,e,t)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,t)};var $=async r=>await r(),g=class extends Error{constructor(t,i,o,a,c,m){super(`${t}
|
2
|
+
${a}${c?" "+c:""} (${i} ${o}${m?` Request ID: ${m}`:""})`);this.errorMessage=t;this.fetchMethod=i;this.fetchUri=o;this.statusCode=a;this.statusText=c;this.requestId=m;Object.setPrototypeOf(this,g.prototype)}};var n=class{constructor(e){h(this,"options");var t,i,o,a,c,m;if(!e.apiKey&&!e.bearerToken)throw new Error("You must provide an API key or a bearer token");this.options={...e,fetch:(t=e.fetch)!=null?t:fetch,apiHost:(i=e.apiHost)!=null?i:"https://uniform.app",apiKey:(o=e.apiKey)!=null?o:null,projectId:(a=e.projectId)!=null?a:null,bearerToken:(c=e.bearerToken)!=null?c:null,limitPolicy:(m=e.limitPolicy)!=null?m:$}}async apiClient(e,t){return this.options.limitPolicy(async()=>{var a;let i=this.options.apiKey?{"x-api-key":this.options.apiKey}:{Authorization:`Bearer ${this.options.bearerToken}`},o=await fetch(e.toString(),{...t,headers:{...t==null?void 0:t.headers,...i}});if(!o.ok){let c="";try{let m=await o.text();try{let C=JSON.parse(m);C.errorMessage?c=Array.isArray(C.errorMessage)?C.errorMessage.join(", "):C.errorMessage:c=m}catch(C){c=m}}catch(m){c="General error"}throw new g(c,(a=t==null?void 0:t.method)!=null?a:"GET",e.toString(),o.status,o.statusText,n.getRequestId(o))}return t!=null&&t.expectNoContent?null:await o.json()})}createUrl(e,t){let i=new URL(`${this.options.apiHost}${e}`);return Object.entries(t!=null?t:{}).forEach(([o,a])=>{var c;typeof a!="undefined"&&a!==null&&i.searchParams.append(o,(c=a==null?void 0:a.toString())!=null?c:"")}),i}static getRequestId(e){let t=e.headers.get("x-nf-request-id");if(t)return t}};var f,D=class extends n{constructor(e){super(e)}async get(e){let{projectId:t}=this.options,i=this.createUrl(s(D,f),{...e,projectId:t});return await this.apiClient(i)}async upsert(e){let t=this.createUrl(s(D,f));await this.apiClient(t,{method:"PUT",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}async remove(e){let t=this.createUrl(s(D,f));await this.apiClient(t,{method:"DELETE",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}},U=D;f=new WeakMap,p(U,f,"/api/v2/aggregate");var A,L=class extends n{constructor(e){super(e)}async get(e){let{projectId:t}=this.options,i=this.createUrl(s(L,A),{...e,projectId:t});return await this.apiClient(i)}},R=L;A=new WeakMap,p(R,A,"/api/v2/dimension");var d,I,y=class extends n{constructor(e){super(e)}async get(e){let{projectId:t}=this.options,i=this.createUrl(s(y,d),{...e,projectId:t});return await this.apiClient(i)}async upsertCategory(e){let t=this.createUrl(s(y,d));await this.apiClient(t,{method:"PUT",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}async removeCategory(e){let t=this.createUrl(s(y,d));await this.apiClient(t,{method:"DELETE",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}async upsertValue(e){let t=this.createUrl(s(y,I));await this.apiClient(t,{method:"PUT",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}async removeValue(e){let t=this.createUrl(s(y,I));await this.apiClient(t,{method:"DELETE",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}},P=y;d=new WeakMap,I=new WeakMap,p(P,d,"/api/v1/enrichments"),p(P,I,"/api/v1/enrichment-values");var k,v=class extends n{constructor(e){super(e)}async get(e){let{projectId:t}=this.options,i=this.createUrl(s(v,k),{...e,projectId:t});return await this.apiClient(i)}},T=v;k=new WeakMap,p(T,k,"/api/v2/manifest");var x,G=class extends n{constructor(e){super(e)}async get(e){let{projectId:t}=this.options,i=this.createUrl(s(G,x),{...e,projectId:t});return await this.apiClient(i)}async upsert(e){let t=this.createUrl(s(G,x));await this.apiClient(t,{method:"PUT",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}async remove(e){let t=this.createUrl(s(G,x));await this.apiClient(t,{method:"DELETE",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}},O=G;x=new WeakMap,p(O,x,"/api/v2/quirk");var E,b=class extends n{constructor(e){super(e)}async get(e){let{projectId:t}=this.options,i=this.createUrl(s(b,E),{...e,projectId:t});return await this.apiClient(i)}async upsert(e){let t=this.createUrl(s(b,E));await this.apiClient(t,{method:"PUT",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}async remove(e){let t=this.createUrl(s(b,E));await this.apiClient(t,{method:"DELETE",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}},w=b;E=new WeakMap,p(w,E,"/api/v2/signal");var j,S=class extends n{constructor(e){super(e)}async get(e){let{projectId:t}=this.options,i=this.createUrl(s(S,j),{...e,projectId:t});return await this.apiClient(i)}async upsert(e){let t=this.createUrl(s(S,j));await this.apiClient(t,{method:"PUT",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}async remove(e){let t=this.createUrl(s(S,j));await this.apiClient(t,{method:"DELETE",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}},N=S;j=new WeakMap,p(N,j,"/api/v2/test");var M=class{constructor(e){h(this,"enrichments");h(this,"aggregates");h(this,"dimensions");h(this,"manifest");h(this,"quirks");h(this,"signals");h(this,"tests");this.enrichments=new P(e),this.aggregates=new U(e),this.dimensions=new R(e),this.manifest=new T(e),this.quirks=new O(e),this.signals=new w(e),this.tests=new N(e)}};var J="_";function K(r){let e=r.category==="ENR"?"Enrichment":r.category==="SIG"?"Signal":r.subcategory==="1"?"Intent":r.subcategory==="0"?"Audience":"Aggregate";return{dim:r.dim,name:r.name,type:e,category:r.category==="ENR"?r.subcategory:void 0}}function Ee(r,e){var t,i,o,a;if((i=(t=e.project.pz)==null?void 0:t.agg)!=null&&i[r])return{dim:r,name:r,type:"Aggregate"};if((a=(o=e.project.pz)==null?void 0:o.sig)!=null&&a[r])return{dim:r,name:r,type:"Signal"};if(r.indexOf(J)>=0){let[c,m]=r.split(J);return{dim:r,name:m,type:"Enrichment",category:c}}}function je(r){let{type:e,name:t}=K(r);return`${e}: ${t}`}export{U as AggregateClient,g as ApiClientError,M as ContextClient,R as DimensionClient,P as EnrichmentClient,T as ManifestClient,O as QuirkClient,w as SignalClient,K as computeDimensionDefinitionDisplayData,Ee as computeDimensionDisplayData,je as computeDimensionDisplayName,$ as nullLimitPolicy};
|
package/dist/cli/cli.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { UniformCLIPlugin } from '@uniformdev/cli';
|
2
2
|
import { UniformPackage } from '@uniformdev/cli/sync';
|
3
|
-
import { A as Aggregate, Q as Quirk, S as SignalWithId, E as EnrichmentCategoryWithValues, T as Test } from '../contextTypes-572b0d33';
|
4
|
-
import '../v2-manifest.swagger-ff2af13e';
|
3
|
+
import { A as Aggregate, Q as Quirk, S as SignalWithId, E as EnrichmentCategoryWithValues, T as Test } from '../contextTypes-572b0d33.js';
|
4
|
+
import '../v2-manifest.swagger-ff2af13e.js';
|
5
5
|
|
6
6
|
declare type ContextPackage = UniformPackage & {
|
7
7
|
aggregates?: Array<Aggregate>;
|