@timardex/cluemart-shared 1.2.73 → 1.2.75

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.
@@ -1,8 +1,8 @@
1
1
  import * as _apollo_client from '@apollo/client';
2
2
  import { EnumResourceType } from '../enums/index.mjs';
3
3
  import { C as ChatType, N as NotificationType, a as NotificationCount, R as ResourceActivityType } from '../resourceActivities-DB-fx51l.mjs';
4
- import { E as EventType, b as EventInfoType, c as RelationType, d as ResourceConnectionsType, V as VendorType, e as VendorInfoType, U as UserType, f as SubscriptionStatusData } from '../global-B0AzhgkH.mjs';
5
- import { T as TesterType, A as AdType, E as EnumAdStatus, P as PartnerType } from '../ad-_p1gmLNT.mjs';
4
+ import { E as EventType, b as EventInfoType, c as RelationType, d as ResourceConnectionsType, V as VendorType, e as VendorInfoType, U as UserLicenceType, f as UserType, g as SubscriptionStatusData } from '../global-nv2pGHgn.mjs';
5
+ import { T as TesterType, A as AdType, E as EnumAdStatus, P as PartnerType } from '../ad-DjzGAy9q.mjs';
6
6
  import 'react-hook-form';
7
7
 
8
8
  declare const useAdminUpdateResourceType: () => {
@@ -304,32 +304,16 @@ declare const useUpdateRelation: () => {
304
304
  error: _apollo_client.ApolloError | undefined;
305
305
  loading: boolean;
306
306
  updateRelation: (options?: _apollo_client.MutationFunctionOptions<{
307
- updateRelation: {
308
- eventId: string;
309
- vendorId: string;
310
- lastUpdateBy: EnumResourceType;
311
- };
307
+ updateRelation: RelationType;
312
308
  }, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
313
- updateRelation: {
314
- eventId: string;
315
- vendorId: string;
316
- lastUpdateBy: EnumResourceType;
317
- };
309
+ updateRelation: RelationType;
318
310
  }>>;
319
311
  };
320
312
  declare const useDeleteRelation: () => {
321
313
  deleteRelation: (options?: _apollo_client.MutationFunctionOptions<{
322
- deleteRelation: {
323
- eventId: string;
324
- vendorId: string;
325
- lastUpdateBy: EnumResourceType;
326
- };
314
+ deleteRelation: RelationType;
327
315
  }, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
328
- deleteRelation: {
329
- eventId: string;
330
- vendorId: string;
331
- lastUpdateBy: EnumResourceType;
332
- };
316
+ deleteRelation: RelationType;
333
317
  }>>;
334
318
  error: _apollo_client.ApolloError | undefined;
335
319
  loading: boolean;
@@ -373,7 +357,7 @@ declare const useGetResourceConnections: (resourceId: string, resourceType: Enum
373
357
  refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
374
358
  resourceConnections: ResourceConnectionsType;
375
359
  }>>;
376
- resourceConnections: ResourceConnectionsType | never[];
360
+ resourceConnections: ResourceConnectionsType | undefined;
377
361
  };
378
362
 
379
363
  declare const useCreateVendor: () => {
@@ -533,10 +517,14 @@ declare const useSelectPackage: () => {
533
517
  selectPackage: (options?: _apollo_client.MutationFunctionOptions<{
534
518
  selectPackage: {
535
519
  userId: string;
520
+ message: string;
521
+ licences: UserLicenceType[];
536
522
  };
537
523
  }, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
538
524
  selectPackage: {
539
525
  userId: string;
526
+ message: string;
527
+ licences: UserLicenceType[];
540
528
  };
541
529
  }>>;
542
530
  };
@@ -1,8 +1,8 @@
1
1
  import * as _apollo_client from '@apollo/client';
2
2
  import { EnumResourceType } from '../enums/index.js';
3
3
  import { C as ChatType, N as NotificationType, a as NotificationCount, R as ResourceActivityType } from '../resourceActivities-Ezt7CDPH.js';
4
- import { E as EventType, b as EventInfoType, c as RelationType, d as ResourceConnectionsType, V as VendorType, e as VendorInfoType, U as UserType, f as SubscriptionStatusData } from '../global-BH6qrlBv.js';
5
- import { T as TesterType, A as AdType, E as EnumAdStatus, P as PartnerType } from '../ad-DIpc7lyr.js';
4
+ import { E as EventType, b as EventInfoType, c as RelationType, d as ResourceConnectionsType, V as VendorType, e as VendorInfoType, U as UserLicenceType, f as UserType, g as SubscriptionStatusData } from '../global-DJbgD4dM.js';
5
+ import { T as TesterType, A as AdType, E as EnumAdStatus, P as PartnerType } from '../ad-ROxL5nSo.js';
6
6
  import 'react-hook-form';
7
7
 
8
8
  declare const useAdminUpdateResourceType: () => {
@@ -304,32 +304,16 @@ declare const useUpdateRelation: () => {
304
304
  error: _apollo_client.ApolloError | undefined;
305
305
  loading: boolean;
306
306
  updateRelation: (options?: _apollo_client.MutationFunctionOptions<{
307
- updateRelation: {
308
- eventId: string;
309
- vendorId: string;
310
- lastUpdateBy: EnumResourceType;
311
- };
307
+ updateRelation: RelationType;
312
308
  }, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
313
- updateRelation: {
314
- eventId: string;
315
- vendorId: string;
316
- lastUpdateBy: EnumResourceType;
317
- };
309
+ updateRelation: RelationType;
318
310
  }>>;
319
311
  };
320
312
  declare const useDeleteRelation: () => {
321
313
  deleteRelation: (options?: _apollo_client.MutationFunctionOptions<{
322
- deleteRelation: {
323
- eventId: string;
324
- vendorId: string;
325
- lastUpdateBy: EnumResourceType;
326
- };
314
+ deleteRelation: RelationType;
327
315
  }, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
328
- deleteRelation: {
329
- eventId: string;
330
- vendorId: string;
331
- lastUpdateBy: EnumResourceType;
332
- };
316
+ deleteRelation: RelationType;
333
317
  }>>;
334
318
  error: _apollo_client.ApolloError | undefined;
335
319
  loading: boolean;
@@ -373,7 +357,7 @@ declare const useGetResourceConnections: (resourceId: string, resourceType: Enum
373
357
  refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
374
358
  resourceConnections: ResourceConnectionsType;
375
359
  }>>;
376
- resourceConnections: ResourceConnectionsType | never[];
360
+ resourceConnections: ResourceConnectionsType | undefined;
377
361
  };
378
362
 
379
363
  declare const useCreateVendor: () => {
@@ -533,10 +517,14 @@ declare const useSelectPackage: () => {
533
517
  selectPackage: (options?: _apollo_client.MutationFunctionOptions<{
534
518
  selectPackage: {
535
519
  userId: string;
520
+ message: string;
521
+ licences: UserLicenceType[];
536
522
  };
537
523
  }, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
538
524
  selectPackage: {
539
525
  userId: string;
526
+ message: string;
527
+ licences: UserLicenceType[];
540
528
  };
541
529
  }>>;
542
530
  };
@@ -83,7 +83,7 @@ var TERMS_AGREEMENT_FIELDS_FRAGMENT = gql2`
83
83
  }
84
84
  `;
85
85
  var LICENCE_FIELDS_FRAGMENT = gql2`
86
- fragment LicenceFields on LicenceType {
86
+ fragment LicenceFields on UserLicenceType {
87
87
  expiryDate
88
88
  issuedDate
89
89
  licenceType
@@ -1800,7 +1800,7 @@ var useGetResourceConnections = (resourceId, resourceType) => {
1800
1800
  fetchPolicy: "network-only",
1801
1801
  variables: { resourceId, resourceType }
1802
1802
  });
1803
- const resourceConnections = data?.resourceConnections || [];
1803
+ const resourceConnections = data?.resourceConnections;
1804
1804
  return { error, loading, refetch, resourceConnections };
1805
1805
  };
1806
1806