cf-service-sdk 0.0.31 → 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.
@@ -887,6 +887,9 @@ export type CompanyObject = {
887
887
  };
888
888
  export type CompanyProductMetalScoreObject = {
889
889
  __typename?: 'CompanyProductMetalScoreObject';
890
+ /** Account ID who assigned this product metal */
891
+ accountId?: Maybe<Scalars['ID']['output']>;
892
+ createdAt: Scalars['DateTime']['output'];
890
893
  id: Scalars['ID']['output'];
891
894
  /** Whether this product metal was assigned by a user (vs system-assigned) */
892
895
  isUserAssigned?: Maybe<Scalars['Boolean']['output']>;
@@ -900,6 +903,16 @@ export type CompanyProductMetalScoreObject = {
900
903
  reasoning?: Maybe<Scalars['String']['output']>;
901
904
  /** Score from 0.00 to 100.00 */
902
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']>;
903
916
  };
904
917
  export declare enum CompanySortField {
905
918
  AverageScore = "AVERAGE_SCORE",
@@ -2198,6 +2211,8 @@ export type QueryTaskArgs = {
2198
2211
  /** Query */
2199
2212
  export type QueryTasksArgs = {
2200
2213
  filters?: InputMaybe<TaskFilterInput>;
2214
+ sortBy?: InputMaybe<Scalars['String']['input']>;
2215
+ sortDirection?: InputMaybe<Scalars['String']['input']>;
2201
2216
  };
2202
2217
  /** Filter input for recent history queries */
2203
2218
  export type RecentHistoryFilterInput = {
@@ -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,6 +11046,8 @@ 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';
@@ -14288,17 +14340,25 @@ export declare const TasksDocument: Apollo.DocumentNode;
14288
14340
  * const { data, loading, error } = useTasksQuery({
14289
14341
  * variables: {
14290
14342
  * filters: // value for 'filters'
14343
+ * sortBy: // value for 'sortBy'
14344
+ * sortDirection: // value for 'sortDirection'
14291
14345
  * },
14292
14346
  * });
14293
14347
  */
14294
14348
  export declare function useTasksQuery(baseOptions?: Apollo.QueryHookOptions<TasksQuery, TasksQueryVariables>): Apollo.QueryResult<TasksQuery, Exact<{
14295
14349
  filters?: InputMaybe<TaskFilterInput>;
14350
+ sortBy?: InputMaybe<Scalars["String"]["input"]>;
14351
+ sortDirection?: InputMaybe<Scalars["String"]["input"]>;
14296
14352
  }>>;
14297
14353
  export declare function useTasksLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<TasksQuery, TasksQueryVariables>): Apollo.LazyQueryResultTuple<TasksQuery, Exact<{
14298
14354
  filters?: InputMaybe<TaskFilterInput>;
14355
+ sortBy?: InputMaybe<Scalars["String"]["input"]>;
14356
+ sortDirection?: InputMaybe<Scalars["String"]["input"]>;
14299
14357
  }>>;
14300
14358
  export declare function useTasksSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<TasksQuery, TasksQueryVariables>): Apollo.UseSuspenseQueryResult<TasksQuery | undefined, Exact<{
14301
14359
  filters?: InputMaybe<TaskFilterInput>;
14360
+ sortBy?: InputMaybe<Scalars["String"]["input"]>;
14361
+ sortDirection?: InputMaybe<Scalars["String"]["input"]>;
14302
14362
  }>>;
14303
14363
  export type TasksQueryHookResult = ReturnType<typeof useTasksQuery>;
14304
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
@@ -10683,6 +10718,8 @@ exports.TasksDocument = (0, client_1.gql) `
10683
10718
  * const { data, loading, error } = useTasksQuery({
10684
10719
  * variables: {
10685
10720
  * filters: // value for 'filters'
10721
+ * sortBy: // value for 'sortBy'
10722
+ * sortDirection: // value for 'sortDirection'
10686
10723
  * },
10687
10724
  * });
10688
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
@@ -2476,6 +2483,8 @@ query Companies($filters: CompanyFilterInput, $pagination: PaginationInput, $sor
2476
2483
  }
2477
2484
  productMetalScores {
2478
2485
  id
2486
+ createdAt
2487
+ updatedAt
2479
2488
  productType {
2480
2489
  id
2481
2490
  name
@@ -2512,6 +2521,11 @@ query Companies($filters: CompanyFilterInput, $pagination: PaginationInput, $sor
2512
2521
  matchedFilter
2513
2522
  reasoning
2514
2523
  isUserAssigned
2524
+ userId
2525
+ accountId
2526
+ userFirstName
2527
+ userLastName
2528
+ source
2515
2529
  }
2516
2530
  companyNotes {
2517
2531
  id
@@ -3079,6 +3093,8 @@ query Company($id: String) {
3079
3093
  }
3080
3094
  productMetalScores {
3081
3095
  id
3096
+ createdAt
3097
+ updatedAt
3082
3098
  productType {
3083
3099
  id
3084
3100
  name
@@ -3115,6 +3131,11 @@ query Company($id: String) {
3115
3131
  matchedFilter
3116
3132
  reasoning
3117
3133
  isUserAssigned
3134
+ userId
3135
+ accountId
3136
+ userFirstName
3137
+ userLastName
3138
+ source
3118
3139
  }
3119
3140
  companyNotes {
3120
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.31",
3
+ "version": "0.0.32",
4
4
  "type": "commonjs",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",