cf-service-sdk 0.0.30 → 0.0.32

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.
@@ -720,6 +720,7 @@ export type CompanyInput = {
720
720
  companyName?: InputMaybe<Scalars['String']['input']>;
721
721
  country?: InputMaybe<Scalars['String']['input']>;
722
722
  description?: InputMaybe<Scalars['String']['input']>;
723
+ email?: InputMaybe<Scalars['String']['input']>;
723
724
  employeeSize?: InputMaybe<Scalars['String']['input']>;
724
725
  facebookUrl?: InputMaybe<Scalars['String']['input']>;
725
726
  id?: InputMaybe<Scalars['ID']['input']>;
@@ -731,6 +732,7 @@ export type CompanyInput = {
731
732
  /** List of company locations to create/update */
732
733
  locations?: InputMaybe<Array<InputMaybe<CompanyLocationInput>>>;
733
734
  logoUrl?: InputMaybe<Scalars['String']['input']>;
735
+ phone?: InputMaybe<Scalars['String']['input']>;
734
736
  productMetalScores?: InputMaybe<Array<InputMaybe<ProductMetalScoreInput>>>;
735
737
  state?: InputMaybe<Scalars['String']['input']>;
736
738
  twitterUrl?: InputMaybe<Scalars['String']['input']>;
@@ -885,6 +887,9 @@ export type CompanyObject = {
885
887
  };
886
888
  export type CompanyProductMetalScoreObject = {
887
889
  __typename?: 'CompanyProductMetalScoreObject';
890
+ /** Account ID who assigned this product metal */
891
+ accountId?: Maybe<Scalars['ID']['output']>;
892
+ createdAt: Scalars['DateTime']['output'];
888
893
  id: Scalars['ID']['output'];
889
894
  /** Whether this product metal was assigned by a user (vs system-assigned) */
890
895
  isUserAssigned?: Maybe<Scalars['Boolean']['output']>;
@@ -898,6 +903,16 @@ export type CompanyProductMetalScoreObject = {
898
903
  reasoning?: Maybe<Scalars['String']['output']>;
899
904
  /** Score from 0.00 to 100.00 */
900
905
  score: Scalars['Decimal']['output'];
906
+ /** Source of the product metal score */
907
+ source?: Maybe<Scalars['String']['output']>;
908
+ /** Date and time the product metal score was last updated */
909
+ updatedAt?: Maybe<Scalars['DateTime']['output']>;
910
+ /** User first name who assigned this product metal */
911
+ userFirstName?: Maybe<Scalars['String']['output']>;
912
+ /** User ID who assigned this product metal */
913
+ userId?: Maybe<Scalars['ID']['output']>;
914
+ /** User last name who assigned this product metal */
915
+ userLastName?: Maybe<Scalars['String']['output']>;
901
916
  };
902
917
  export declare enum CompanySortField {
903
918
  AverageScore = "AVERAGE_SCORE",
@@ -2196,6 +2211,8 @@ export type QueryTaskArgs = {
2196
2211
  /** Query */
2197
2212
  export type QueryTasksArgs = {
2198
2213
  filters?: InputMaybe<TaskFilterInput>;
2214
+ sortBy?: InputMaybe<Scalars['String']['input']>;
2215
+ sortDirection?: InputMaybe<Scalars['String']['input']>;
2199
2216
  };
2200
2217
  /** Filter input for recent history queries */
2201
2218
  export type RecentHistoryFilterInput = {
@@ -2470,11 +2487,9 @@ export type TaskStatsObject = {
2470
2487
  export type TasksResponse = {
2471
2488
  __typename?: 'TasksResponse';
2472
2489
  items?: Maybe<Array<Maybe<TaskObject>>>;
2473
- page?: Maybe<Scalars['Int']['output']>;
2474
- pageSize?: Maybe<Scalars['Int']['output']>;
2490
+ /** Pagination information */
2491
+ pagination?: Maybe<PaginationInfo>;
2475
2492
  stats?: Maybe<TaskStatsObject>;
2476
- total?: Maybe<Scalars['Int']['output']>;
2477
- totalPages?: Maybe<Scalars['Int']['output']>;
2478
2493
  };
2479
2494
  export type UsStateData = {
2480
2495
  __typename?: 'USStateData';
@@ -3367,10 +3382,17 @@ export type CreateCompanyMutation = {
3367
3382
  productMetalScores?: Array<{
3368
3383
  __typename?: 'CompanyProductMetalScoreObject';
3369
3384
  id: string;
3385
+ createdAt: any;
3386
+ updatedAt?: any | null;
3370
3387
  score: any;
3371
3388
  matchedFilter?: boolean | null;
3372
3389
  reasoning?: string | null;
3373
3390
  isUserAssigned?: boolean | null;
3391
+ userId?: string | null;
3392
+ accountId?: string | null;
3393
+ userFirstName?: string | null;
3394
+ userLastName?: string | null;
3395
+ source?: string | null;
3374
3396
  productType?: {
3375
3397
  __typename?: 'ProductTypeObject';
3376
3398
  id?: string | null;
@@ -5789,10 +5811,17 @@ export type UpdateCompanyMutation = {
5789
5811
  productMetalScores?: Array<{
5790
5812
  __typename?: 'CompanyProductMetalScoreObject';
5791
5813
  id: string;
5814
+ createdAt: any;
5815
+ updatedAt?: any | null;
5792
5816
  score: any;
5793
5817
  matchedFilter?: boolean | null;
5794
5818
  reasoning?: string | null;
5795
5819
  isUserAssigned?: boolean | null;
5820
+ userId?: string | null;
5821
+ accountId?: string | null;
5822
+ userFirstName?: string | null;
5823
+ userLastName?: string | null;
5824
+ source?: string | null;
5796
5825
  productType?: {
5797
5826
  __typename?: 'ProductTypeObject';
5798
5827
  id?: string | null;
@@ -7987,10 +8016,17 @@ export type CompaniesQuery = {
7987
8016
  productMetalScores?: Array<{
7988
8017
  __typename?: 'CompanyProductMetalScoreObject';
7989
8018
  id: string;
8019
+ createdAt: any;
8020
+ updatedAt?: any | null;
7990
8021
  score: any;
7991
8022
  matchedFilter?: boolean | null;
7992
8023
  reasoning?: string | null;
7993
8024
  isUserAssigned?: boolean | null;
8025
+ userId?: string | null;
8026
+ accountId?: string | null;
8027
+ userFirstName?: string | null;
8028
+ userLastName?: string | null;
8029
+ source?: string | null;
7994
8030
  productType?: {
7995
8031
  __typename?: 'ProductTypeObject';
7996
8032
  id?: string | null;
@@ -8539,10 +8575,17 @@ export type CompanyQuery = {
8539
8575
  productMetalScores?: Array<{
8540
8576
  __typename?: 'CompanyProductMetalScoreObject';
8541
8577
  id: string;
8578
+ createdAt: any;
8579
+ updatedAt?: any | null;
8542
8580
  score: any;
8543
8581
  matchedFilter?: boolean | null;
8544
8582
  reasoning?: string | null;
8545
8583
  isUserAssigned?: boolean | null;
8584
+ userId?: string | null;
8585
+ accountId?: string | null;
8586
+ userFirstName?: string | null;
8587
+ userLastName?: string | null;
8588
+ source?: string | null;
8546
8589
  productType?: {
8547
8590
  __typename?: 'ProductTypeObject';
8548
8591
  id?: string | null;
@@ -10319,10 +10362,17 @@ export type RecentHistoryQuery = {
10319
10362
  productMetalScores?: Array<{
10320
10363
  __typename?: 'CompanyProductMetalScoreObject';
10321
10364
  id: string;
10365
+ createdAt: any;
10366
+ updatedAt?: any | null;
10322
10367
  score: any;
10323
10368
  matchedFilter?: boolean | null;
10324
10369
  reasoning?: string | null;
10325
10370
  isUserAssigned?: boolean | null;
10371
+ userId?: string | null;
10372
+ accountId?: string | null;
10373
+ userFirstName?: string | null;
10374
+ userLastName?: string | null;
10375
+ source?: string | null;
10326
10376
  productType?: {
10327
10377
  __typename?: 'ProductTypeObject';
10328
10378
  id?: string | null;
@@ -10996,15 +11046,13 @@ export type TaskQuery = {
10996
11046
  };
10997
11047
  export type TasksQueryVariables = Exact<{
10998
11048
  filters?: InputMaybe<TaskFilterInput>;
11049
+ sortBy?: InputMaybe<Scalars['String']['input']>;
11050
+ sortDirection?: InputMaybe<Scalars['String']['input']>;
10999
11051
  }>;
11000
11052
  export type TasksQuery = {
11001
11053
  __typename?: 'Query';
11002
11054
  tasks?: {
11003
11055
  __typename?: 'TasksResponse';
11004
- total?: number | null;
11005
- page?: number | null;
11006
- pageSize?: number | null;
11007
- totalPages?: number | null;
11008
11056
  items?: Array<{
11009
11057
  __typename?: 'TaskObject';
11010
11058
  id?: number | null;
@@ -11141,6 +11189,15 @@ export type TasksQuery = {
11141
11189
  callCampaignLogOutcome?: string | null;
11142
11190
  } | null;
11143
11191
  } | null> | null;
11192
+ pagination?: {
11193
+ __typename?: 'PaginationInfo';
11194
+ currentPage?: number | null;
11195
+ pageSize?: number | null;
11196
+ totalPages?: number | null;
11197
+ totalCount?: number | null;
11198
+ hasNextPage?: boolean | null;
11199
+ hasPreviousPage?: boolean | null;
11200
+ } | null;
11144
11201
  stats?: {
11145
11202
  __typename?: 'TaskStatsObject';
11146
11203
  open?: number | null;
@@ -14283,17 +14340,25 @@ export declare const TasksDocument: Apollo.DocumentNode;
14283
14340
  * const { data, loading, error } = useTasksQuery({
14284
14341
  * variables: {
14285
14342
  * filters: // value for 'filters'
14343
+ * sortBy: // value for 'sortBy'
14344
+ * sortDirection: // value for 'sortDirection'
14286
14345
  * },
14287
14346
  * });
14288
14347
  */
14289
14348
  export declare function useTasksQuery(baseOptions?: Apollo.QueryHookOptions<TasksQuery, TasksQueryVariables>): Apollo.QueryResult<TasksQuery, Exact<{
14290
14349
  filters?: InputMaybe<TaskFilterInput>;
14350
+ sortBy?: InputMaybe<Scalars["String"]["input"]>;
14351
+ sortDirection?: InputMaybe<Scalars["String"]["input"]>;
14291
14352
  }>>;
14292
14353
  export declare function useTasksLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<TasksQuery, TasksQueryVariables>): Apollo.LazyQueryResultTuple<TasksQuery, Exact<{
14293
14354
  filters?: InputMaybe<TaskFilterInput>;
14355
+ sortBy?: InputMaybe<Scalars["String"]["input"]>;
14356
+ sortDirection?: InputMaybe<Scalars["String"]["input"]>;
14294
14357
  }>>;
14295
14358
  export declare function useTasksSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<TasksQuery, TasksQueryVariables>): Apollo.UseSuspenseQueryResult<TasksQuery | undefined, Exact<{
14296
14359
  filters?: InputMaybe<TaskFilterInput>;
14360
+ sortBy?: InputMaybe<Scalars["String"]["input"]>;
14361
+ sortDirection?: InputMaybe<Scalars["String"]["input"]>;
14297
14362
  }>>;
14298
14363
  export type TasksQueryHookResult = ReturnType<typeof useTasksQuery>;
14299
14364
  export type TasksLazyQueryHookResult = ReturnType<typeof useTasksLazyQuery>;
@@ -1355,6 +1355,8 @@ exports.CreateCompanyDocument = (0, client_1.gql) `
1355
1355
  }
1356
1356
  productMetalScores {
1357
1357
  id
1358
+ createdAt
1359
+ updatedAt
1358
1360
  productType {
1359
1361
  id
1360
1362
  name
@@ -1391,6 +1393,11 @@ exports.CreateCompanyDocument = (0, client_1.gql) `
1391
1393
  matchedFilter
1392
1394
  reasoning
1393
1395
  isUserAssigned
1396
+ userId
1397
+ accountId
1398
+ userFirstName
1399
+ userLastName
1400
+ source
1394
1401
  }
1395
1402
  companyNotes {
1396
1403
  id
@@ -4463,6 +4470,8 @@ exports.UpdateCompanyDocument = (0, client_1.gql) `
4463
4470
  }
4464
4471
  productMetalScores {
4465
4472
  id
4473
+ createdAt
4474
+ updatedAt
4466
4475
  productType {
4467
4476
  id
4468
4477
  name
@@ -4499,6 +4508,11 @@ exports.UpdateCompanyDocument = (0, client_1.gql) `
4499
4508
  matchedFilter
4500
4509
  reasoning
4501
4510
  isUserAssigned
4511
+ userId
4512
+ accountId
4513
+ userFirstName
4514
+ userLastName
4515
+ source
4502
4516
  }
4503
4517
  companyNotes {
4504
4518
  id
@@ -6988,6 +7002,8 @@ exports.CompaniesDocument = (0, client_1.gql) `
6988
7002
  }
6989
7003
  productMetalScores {
6990
7004
  id
7005
+ createdAt
7006
+ updatedAt
6991
7007
  productType {
6992
7008
  id
6993
7009
  name
@@ -7024,6 +7040,11 @@ exports.CompaniesDocument = (0, client_1.gql) `
7024
7040
  matchedFilter
7025
7041
  reasoning
7026
7042
  isUserAssigned
7043
+ userId
7044
+ accountId
7045
+ userFirstName
7046
+ userLastName
7047
+ source
7027
7048
  }
7028
7049
  companyNotes {
7029
7050
  id
@@ -7524,6 +7545,8 @@ exports.CompanyDocument = (0, client_1.gql) `
7524
7545
  }
7525
7546
  productMetalScores {
7526
7547
  id
7548
+ createdAt
7549
+ updatedAt
7527
7550
  productType {
7528
7551
  id
7529
7552
  name
@@ -7560,6 +7583,11 @@ exports.CompanyDocument = (0, client_1.gql) `
7560
7583
  matchedFilter
7561
7584
  reasoning
7562
7585
  isUserAssigned
7586
+ userId
7587
+ accountId
7588
+ userFirstName
7589
+ userLastName
7590
+ source
7563
7591
  }
7564
7592
  companyNotes {
7565
7593
  id
@@ -9714,6 +9742,8 @@ exports.RecentHistoryDocument = (0, client_1.gql) `
9714
9742
  }
9715
9743
  productMetalScores {
9716
9744
  id
9745
+ createdAt
9746
+ updatedAt
9717
9747
  productType {
9718
9748
  id
9719
9749
  name
@@ -9750,6 +9780,11 @@ exports.RecentHistoryDocument = (0, client_1.gql) `
9750
9780
  matchedFilter
9751
9781
  reasoning
9752
9782
  isUserAssigned
9783
+ userId
9784
+ accountId
9785
+ userFirstName
9786
+ userLastName
9787
+ source
9753
9788
  }
9754
9789
  companyNotes {
9755
9790
  id
@@ -10522,8 +10557,8 @@ function useTaskSuspenseQuery(baseOptions) {
10522
10557
  return Apollo.useSuspenseQuery(exports.TaskDocument, options);
10523
10558
  }
10524
10559
  exports.TasksDocument = (0, client_1.gql) `
10525
- query Tasks($filters: TaskFilterInput) {
10526
- tasks(filters: $filters) {
10560
+ query Tasks($filters: TaskFilterInput, $sortBy: String, $sortDirection: String) {
10561
+ tasks(filters: $filters, sortBy: $sortBy, sortDirection: $sortDirection) {
10527
10562
  items {
10528
10563
  id
10529
10564
  title
@@ -10651,10 +10686,14 @@ exports.TasksDocument = (0, client_1.gql) `
10651
10686
  contactName
10652
10687
  overdue
10653
10688
  }
10654
- total
10655
- page
10656
- pageSize
10657
- totalPages
10689
+ pagination {
10690
+ currentPage
10691
+ pageSize
10692
+ totalPages
10693
+ totalCount
10694
+ hasNextPage
10695
+ hasPreviousPage
10696
+ }
10658
10697
  stats {
10659
10698
  open
10660
10699
  overdue
@@ -10679,6 +10718,8 @@ exports.TasksDocument = (0, client_1.gql) `
10679
10718
  * const { data, loading, error } = useTasksQuery({
10680
10719
  * variables: {
10681
10720
  * filters: // value for 'filters'
10721
+ * sortBy: // value for 'sortBy'
10722
+ * sortDirection: // value for 'sortDirection'
10682
10723
  * },
10683
10724
  * });
10684
10725
  */
package/dist/mutations.js CHANGED
@@ -396,6 +396,8 @@ mutation CreateCompany($input: CompanyInput) {
396
396
  }
397
397
  productMetalScores {
398
398
  id
399
+ createdAt
400
+ updatedAt
399
401
  productType {
400
402
  id
401
403
  name
@@ -432,6 +434,11 @@ mutation CreateCompany($input: CompanyInput) {
432
434
  matchedFilter
433
435
  reasoning
434
436
  isUserAssigned
437
+ userId
438
+ accountId
439
+ userFirstName
440
+ userLastName
441
+ source
435
442
  }
436
443
  companyNotes {
437
444
  id
@@ -989,6 +996,8 @@ mutation UpdateCompany($input: CompanyInput) {
989
996
  }
990
997
  productMetalScores {
991
998
  id
999
+ createdAt
1000
+ updatedAt
992
1001
  productType {
993
1002
  id
994
1003
  name
@@ -1025,6 +1034,11 @@ mutation UpdateCompany($input: CompanyInput) {
1025
1034
  matchedFilter
1026
1035
  reasoning
1027
1036
  isUserAssigned
1037
+ userId
1038
+ accountId
1039
+ userFirstName
1040
+ userLastName
1041
+ source
1028
1042
  }
1029
1043
  companyNotes {
1030
1044
  id
package/dist/queries.js CHANGED
@@ -183,6 +183,8 @@ query RecentHistory($filter: RecentHistoryFilterInput, $sort: RecentHistorySortI
183
183
  }
184
184
  productMetalScores {
185
185
  id
186
+ createdAt
187
+ updatedAt
186
188
  productType {
187
189
  id
188
190
  name
@@ -219,6 +221,11 @@ query RecentHistory($filter: RecentHistoryFilterInput, $sort: RecentHistorySortI
219
221
  matchedFilter
220
222
  reasoning
221
223
  isUserAssigned
224
+ userId
225
+ accountId
226
+ userFirstName
227
+ userLastName
228
+ source
222
229
  }
223
230
  companyNotes {
224
231
  id
@@ -1540,8 +1547,8 @@ query CallCampaignLog($id: ID!) {
1540
1547
  }
1541
1548
  }`;
1542
1549
  exports.TASKS = (0, client_1.gql) `
1543
- query Tasks($filters: TaskFilterInput) {
1544
- tasks(filters: $filters) {
1550
+ query Tasks($filters: TaskFilterInput, $sortBy: String, $sortDirection: String) {
1551
+ tasks(filters: $filters, sortBy: $sortBy, sortDirection: $sortDirection) {
1545
1552
  items {
1546
1553
  id
1547
1554
  title
@@ -1669,10 +1676,14 @@ query Tasks($filters: TaskFilterInput) {
1669
1676
  contactName
1670
1677
  overdue
1671
1678
  }
1672
- total
1673
- page
1674
- pageSize
1675
- totalPages
1679
+ pagination {
1680
+ currentPage
1681
+ pageSize
1682
+ totalPages
1683
+ totalCount
1684
+ hasNextPage
1685
+ hasPreviousPage
1686
+ }
1676
1687
  stats {
1677
1688
  open
1678
1689
  overdue
@@ -2472,6 +2483,8 @@ query Companies($filters: CompanyFilterInput, $pagination: PaginationInput, $sor
2472
2483
  }
2473
2484
  productMetalScores {
2474
2485
  id
2486
+ createdAt
2487
+ updatedAt
2475
2488
  productType {
2476
2489
  id
2477
2490
  name
@@ -2508,6 +2521,11 @@ query Companies($filters: CompanyFilterInput, $pagination: PaginationInput, $sor
2508
2521
  matchedFilter
2509
2522
  reasoning
2510
2523
  isUserAssigned
2524
+ userId
2525
+ accountId
2526
+ userFirstName
2527
+ userLastName
2528
+ source
2511
2529
  }
2512
2530
  companyNotes {
2513
2531
  id
@@ -3075,6 +3093,8 @@ query Company($id: String) {
3075
3093
  }
3076
3094
  productMetalScores {
3077
3095
  id
3096
+ createdAt
3097
+ updatedAt
3078
3098
  productType {
3079
3099
  id
3080
3100
  name
@@ -3111,6 +3131,11 @@ query Company($id: String) {
3111
3131
  matchedFilter
3112
3132
  reasoning
3113
3133
  isUserAssigned
3134
+ userId
3135
+ accountId
3136
+ userFirstName
3137
+ userLastName
3138
+ source
3114
3139
  }
3115
3140
  companyNotes {
3116
3141
  id
package/dist/sdk.d.ts CHANGED
@@ -114,7 +114,7 @@ export declare class CloudForgeSDK {
114
114
  segment(id: string): Promise<import("@apollo/client").ApolloQueryResult<any>>;
115
115
  segments(pagination?: PaginationInput, includeSystemTemplates?: boolean, filters?: SegmentFilterInput): Promise<import("@apollo/client").ApolloQueryResult<any>>;
116
116
  task(id: number): Promise<import("@apollo/client").ApolloQueryResult<any>>;
117
- tasks(filters?: TaskFilterInput): Promise<import("@apollo/client").ApolloQueryResult<any>>;
117
+ tasks(filters?: TaskFilterInput, sortBy?: string, sortDirection?: string): Promise<import("@apollo/client").ApolloQueryResult<any>>;
118
118
  unreadNotificationsCount(): Promise<import("@apollo/client").ApolloQueryResult<any>>;
119
119
  usStates(): Promise<import("@apollo/client").ApolloQueryResult<any>>;
120
120
  userProfile(): Promise<import("@apollo/client").ApolloQueryResult<any>>;
package/dist/sdk.js CHANGED
@@ -656,10 +656,10 @@ class CloudForgeSDK {
656
656
  variables: { id }
657
657
  });
658
658
  }
659
- async tasks(filters) {
659
+ async tasks(filters, sortBy, sortDirection) {
660
660
  return this.apolloClient.query({
661
661
  query: queries_1.TASKS,
662
- variables: { filters }
662
+ variables: { filters, sortBy, sortDirection }
663
663
  });
664
664
  }
665
665
  async unreadNotificationsCount() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cf-service-sdk",
3
- "version": "0.0.30",
3
+ "version": "0.0.32",
4
4
  "type": "commonjs",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",