@quiltt/core 3.6.11 → 3.6.12

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @quiltt/core
2
2
 
3
+ ## 3.6.12
4
+
5
+ ### Patch Changes
6
+
7
+ - [#274](https://github.com/quiltt/quiltt-js/pull/274) [`d684ade`](https://github.com/quiltt/quiltt-js/commit/d684ade520689d6207c699cea0681a9331f06069) Thanks [@zubairaziz](https://github.com/zubairaziz)! - Update 'rol' types in PrivateClaims
8
+
3
9
  ## 3.6.11
4
10
 
5
11
  ### Patch Changes
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import { ApolloLink, Observable as Observable$1 } from '@apollo/client/core/index.js';
3
3
  import { print } from 'graphql';
4
- import { c as createConsumer } from './index-client-1u-DL-7m.js';
4
+ import { c as createConsumer } from './index-client-AzYaJaCS.js';
5
5
 
6
6
  /**
7
7
  * An error and type safe wrapper for localStorage.
@@ -203,7 +203,7 @@ import { c as createConsumer } from './index-client-1u-DL-7m.js';
203
203
  */ const GlobalStorage = new Storage();
204
204
 
205
205
  var name = "@quiltt/core";
206
- var version$1 = "3.6.11";
206
+ var version$1 = "3.6.12";
207
207
 
208
208
  const QUILTT_API_INSECURE = (()=>{
209
209
  try {
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { d as debugging } from './SubscriptionLink-client-Be2B_Wkn.js';
2
+ import { d as debugging } from './SubscriptionLink-client-CGUaoxuA.js';
3
3
 
4
4
  var adapters = {
5
5
  logger: typeof globalThis !== 'undefined' ? globalThis.console : undefined,
package/dist/index.d.ts CHANGED
@@ -402,7 +402,6 @@ declare const endpointAuth: string;
402
402
  declare const endpointGraphQL: string;
403
403
  declare const endpointWebsockets: string;
404
404
 
405
- type AdminRole = 'manager' | 'core' | 'basic';
406
405
  type RegisteredClaims = {
407
406
  iss: string;
408
407
  sub: string;
@@ -418,7 +417,7 @@ type PrivateClaims = {
418
417
  cid: string;
419
418
  aid: string;
420
419
  ver: number;
421
- rol: AdminRole;
420
+ rol: 'basic' | 'core' | 'manager' | 'super-admin';
422
421
  };
423
422
  type Claims<T> = RegisteredClaims & T;
424
423
  type JsonWebToken<T> = {
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { ApolloLink, ApolloClient } from '@apollo/client/index.js';
2
2
  export { InMemoryCache, gql, useMutation, useQuery, useSubscription } from '@apollo/client/index.js';
3
- import { G as GlobalStorage, e as endpointGraphQL, v as version, d as debugging, S as SubscriptionLink, a as endpointAuth } from './SubscriptionLink-client-Be2B_Wkn.js';
4
- export { L as LocalStorage, M as MemoryStorage, O as Observable, b as Storage, c as cdnBase, f as endpointWebsockets } from './SubscriptionLink-client-Be2B_Wkn.js';
3
+ import { G as GlobalStorage, e as endpointGraphQL, v as version, d as debugging, S as SubscriptionLink, a as endpointAuth } from './SubscriptionLink-client-CGUaoxuA.js';
4
+ export { L as LocalStorage, M as MemoryStorage, O as Observable, b as Storage, c as cdnBase, f as endpointWebsockets } from './SubscriptionLink-client-CGUaoxuA.js';
5
5
  import { BatchHttpLink as BatchHttpLink$1 } from '@apollo/client/link/batch-http/index.js';
6
6
  import crossfetch from 'cross-fetch';
7
7
  import { onError } from '@apollo/client/link/error/index.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quiltt/core",
3
- "version": "3.6.11",
3
+ "version": "3.6.12",
4
4
  "description": "Javascript API client and utilities for Quiltt",
5
5
  "keywords": [
6
6
  "quiltt",
@@ -1,7 +1,5 @@
1
1
  import type { Maybe } from './types'
2
2
 
3
- type AdminRole = 'manager' | 'core' | 'basic'
4
-
5
3
  export type RegisteredClaims = {
6
4
  iss: string // (issuer): Issuer of the JWT
7
5
  sub: string // (subject): Subject of the JWT (Person ID)
@@ -18,7 +16,7 @@ export type PrivateClaims = {
18
16
  cid: string // Client ID
19
17
  aid: string // Administrator ID
20
18
  ver: number // Session Token Version
21
- rol: AdminRole // Administrator Role
19
+ rol: 'basic' | 'core' | 'manager' | 'super-admin' // Administrator Role
22
20
  }
23
21
 
24
22
  export type Claims<T> = RegisteredClaims & T