@worknice/js-sdk 0.1.0 → 0.2.0-rc.2
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/dist/{_types-Cobjq3B-.d.ts → _types-DF8wd5Su.d.ts} +47 -14
- package/dist/api/WorkniceIntegrationLogger.d.ts +1 -1
- package/dist/api/_generated.d.ts +17 -6
- package/dist/api/_generated.js.map +1 -1
- package/dist/api/_types.d.ts +1 -1
- package/dist/api/createApiOperation.d.ts +1 -1
- package/dist/api/createWorkniceClient.d.ts +1 -1
- package/dist/api/operations/activateIntegration.d.ts +1 -1
- package/dist/api/operations/authorizeIntegration.d.ts +1 -1
- package/dist/api/operations/completeSync.d.ts +1 -1
- package/dist/api/operations/createApiToken.d.ts +1 -1
- package/dist/api/operations/createDataImport.d.ts +1 -1
- package/dist/api/operations/createPersonConnection.d.ts +21 -8
- package/dist/api/operations/createPersonConnection.js +2 -1
- package/dist/api/operations/createPersonConnection.js.map +1 -1
- package/dist/api/operations/createPersonDataImportLine.d.ts +1 -1
- package/dist/api/operations/deleteApiToken.d.ts +1 -1
- package/dist/api/operations/deletePersonConnection.d.ts +1 -1
- package/dist/api/operations/getApiTokens.d.ts +1 -1
- package/dist/api/operations/getIntegration.d.ts +1 -1
- package/dist/api/operations/getMyApps.d.ts +1 -1
- package/dist/api/operations/getPeople.d.ts +1 -1
- package/dist/api/operations/getPersonConnections.d.ts +15 -8
- package/dist/api/operations/getPersonConnections.js +2 -1
- package/dist/api/operations/getPersonConnections.js.map +1 -1
- package/dist/api/operations/initializeIntegration.d.ts +1 -1
- package/dist/api/operations/updatePerson.d.ts +1 -1
- package/dist/api/operations/updatePersonConnection.d.ts +14 -1
- package/dist/api/operations/updatePersonConnection.js +1 -0
- package/dist/api/operations/updatePersonConnection.js.map +1 -1
- package/dist/helpers/_types.d.ts +1 -1
- package/dist/helpers/handleApproveLeaveRequestWebhook.d.ts +1 -1
- package/dist/helpers/handleCancelLeaveRequestWebhook.d.ts +1 -1
- package/dist/helpers/handleCreateIntegrationWebhook.d.ts +1 -1
- package/dist/helpers/handleCreateLeaveRequestWebhook.d.ts +1 -1
- package/dist/helpers/handleDenyLeaveRequestWebhook.d.ts +1 -1
- package/dist/helpers/handleGetAuthorizationUrlWebhook.d.ts +1 -1
- package/dist/helpers/handleGetLeaveBalancesWebhook.d.ts +1 -1
- package/dist/helpers/handleGetLeaveCategoriesWebhook.d.ts +1 -1
- package/dist/helpers/handleGetLeaveRequestHoursWebhook.d.ts +1 -1
- package/dist/helpers/handleProcessLeaveRequestWebhook.d.ts +1 -1
- package/dist/helpers/handleRequest.d.ts +1 -1
- package/dist/helpers/handleRequestWithWorknice.d.ts +1 -1
- package/dist/helpers/handleTriggerIntegrationSyncWebhook.d.ts +1 -1
- package/dist/helpers/index.d.ts +1 -1
- package/package.json +2 -2
|
@@ -67,8 +67,10 @@ declare const createWorkniceClient: (clientConfig?: ClientConfig) => {
|
|
|
67
67
|
integrationId: string;
|
|
68
68
|
personId: string;
|
|
69
69
|
remote: {
|
|
70
|
+
description?: string | null;
|
|
70
71
|
id: string;
|
|
71
72
|
name: string;
|
|
73
|
+
url?: string | null;
|
|
72
74
|
};
|
|
73
75
|
status: ConnectionStatus.Connected;
|
|
74
76
|
} | {
|
|
@@ -79,15 +81,19 @@ declare const createWorkniceClient: (clientConfig?: ClientConfig) => {
|
|
|
79
81
|
integrationId: string;
|
|
80
82
|
personId: string;
|
|
81
83
|
remote: {
|
|
84
|
+
description?: string | null;
|
|
82
85
|
id: string;
|
|
83
86
|
name: string;
|
|
87
|
+
url?: string | null;
|
|
84
88
|
};
|
|
85
89
|
status: ConnectionStatus.Merged;
|
|
86
90
|
} | {
|
|
87
91
|
integrationId: string;
|
|
88
92
|
remote: {
|
|
93
|
+
description?: string | null;
|
|
89
94
|
id: string;
|
|
90
95
|
name: string;
|
|
96
|
+
url?: string | null;
|
|
91
97
|
};
|
|
92
98
|
status: ConnectionStatus.RemoteOnly;
|
|
93
99
|
}, fetchOptions?: FetchOptions) => Promise<({
|
|
@@ -102,15 +108,17 @@ declare const createWorkniceClient: (clientConfig?: ClientConfig) => {
|
|
|
102
108
|
updatedAt: string;
|
|
103
109
|
} | null;
|
|
104
110
|
remote?: {
|
|
105
|
-
|
|
111
|
+
description?: string | null;
|
|
106
112
|
id: string;
|
|
113
|
+
name: string;
|
|
107
114
|
url?: string | null;
|
|
108
115
|
} | null;
|
|
109
116
|
} & {
|
|
110
117
|
status: ConnectionStatus.Connected;
|
|
111
118
|
remote: {
|
|
112
|
-
|
|
119
|
+
description?: string | null;
|
|
113
120
|
id: string;
|
|
121
|
+
name: string;
|
|
114
122
|
url?: string | null;
|
|
115
123
|
};
|
|
116
124
|
person: {
|
|
@@ -130,15 +138,17 @@ declare const createWorkniceClient: (clientConfig?: ClientConfig) => {
|
|
|
130
138
|
updatedAt: string;
|
|
131
139
|
} | null;
|
|
132
140
|
remote?: {
|
|
133
|
-
|
|
141
|
+
description?: string | null;
|
|
134
142
|
id: string;
|
|
143
|
+
name: string;
|
|
135
144
|
url?: string | null;
|
|
136
145
|
} | null;
|
|
137
146
|
} & {
|
|
138
147
|
status: ConnectionStatus.Merged;
|
|
139
148
|
remote: {
|
|
140
|
-
|
|
149
|
+
description?: string | null;
|
|
141
150
|
id: string;
|
|
151
|
+
name: string;
|
|
142
152
|
url?: string | null;
|
|
143
153
|
};
|
|
144
154
|
person: {
|
|
@@ -158,8 +168,9 @@ declare const createWorkniceClient: (clientConfig?: ClientConfig) => {
|
|
|
158
168
|
updatedAt: string;
|
|
159
169
|
} | null;
|
|
160
170
|
remote?: {
|
|
161
|
-
|
|
171
|
+
description?: string | null;
|
|
162
172
|
id: string;
|
|
173
|
+
name: string;
|
|
163
174
|
url?: string | null;
|
|
164
175
|
} | null;
|
|
165
176
|
} & {
|
|
@@ -182,15 +193,17 @@ declare const createWorkniceClient: (clientConfig?: ClientConfig) => {
|
|
|
182
193
|
updatedAt: string;
|
|
183
194
|
} | null;
|
|
184
195
|
remote?: {
|
|
185
|
-
|
|
196
|
+
description?: string | null;
|
|
186
197
|
id: string;
|
|
198
|
+
name: string;
|
|
187
199
|
url?: string | null;
|
|
188
200
|
} | null;
|
|
189
201
|
} & {
|
|
190
202
|
status: ConnectionStatus.RemoteOnly;
|
|
191
203
|
remote: {
|
|
192
|
-
|
|
204
|
+
description?: string | null;
|
|
193
205
|
id: string;
|
|
206
|
+
name: string;
|
|
194
207
|
url?: string | null;
|
|
195
208
|
};
|
|
196
209
|
person: null;
|
|
@@ -415,15 +428,17 @@ declare const createWorkniceClient: (clientConfig?: ClientConfig) => {
|
|
|
415
428
|
updatedAt: string;
|
|
416
429
|
} | null;
|
|
417
430
|
remote?: {
|
|
418
|
-
|
|
431
|
+
description?: string | null;
|
|
419
432
|
id: string;
|
|
433
|
+
name: string;
|
|
420
434
|
url?: string | null;
|
|
421
435
|
} | null;
|
|
422
436
|
} & {
|
|
423
437
|
status: ConnectionStatus.Connected;
|
|
424
438
|
remote: {
|
|
425
|
-
|
|
439
|
+
description?: string | null;
|
|
426
440
|
id: string;
|
|
441
|
+
name: string;
|
|
427
442
|
url?: string | null;
|
|
428
443
|
};
|
|
429
444
|
person: {
|
|
@@ -443,15 +458,17 @@ declare const createWorkniceClient: (clientConfig?: ClientConfig) => {
|
|
|
443
458
|
updatedAt: string;
|
|
444
459
|
} | null;
|
|
445
460
|
remote?: {
|
|
446
|
-
|
|
461
|
+
description?: string | null;
|
|
447
462
|
id: string;
|
|
463
|
+
name: string;
|
|
448
464
|
url?: string | null;
|
|
449
465
|
} | null;
|
|
450
466
|
} & {
|
|
451
467
|
status: ConnectionStatus.Merged;
|
|
452
468
|
remote: {
|
|
453
|
-
|
|
469
|
+
description?: string | null;
|
|
454
470
|
id: string;
|
|
471
|
+
name: string;
|
|
455
472
|
url?: string | null;
|
|
456
473
|
};
|
|
457
474
|
person: {
|
|
@@ -471,8 +488,9 @@ declare const createWorkniceClient: (clientConfig?: ClientConfig) => {
|
|
|
471
488
|
updatedAt: string;
|
|
472
489
|
} | null;
|
|
473
490
|
remote?: {
|
|
474
|
-
|
|
491
|
+
description?: string | null;
|
|
475
492
|
id: string;
|
|
493
|
+
name: string;
|
|
476
494
|
url?: string | null;
|
|
477
495
|
} | null;
|
|
478
496
|
} & {
|
|
@@ -495,15 +513,17 @@ declare const createWorkniceClient: (clientConfig?: ClientConfig) => {
|
|
|
495
513
|
updatedAt: string;
|
|
496
514
|
} | null;
|
|
497
515
|
remote?: {
|
|
498
|
-
|
|
516
|
+
description?: string | null;
|
|
499
517
|
id: string;
|
|
518
|
+
name: string;
|
|
500
519
|
url?: string | null;
|
|
501
520
|
} | null;
|
|
502
521
|
} & {
|
|
503
522
|
status: ConnectionStatus.RemoteOnly;
|
|
504
523
|
remote: {
|
|
505
|
-
|
|
524
|
+
description?: string | null;
|
|
506
525
|
id: string;
|
|
526
|
+
name: string;
|
|
507
527
|
url?: string | null;
|
|
508
528
|
};
|
|
509
529
|
person: null;
|
|
@@ -575,8 +595,10 @@ declare const createWorkniceClient: (clientConfig?: ClientConfig) => {
|
|
|
575
595
|
personConnectionId: string;
|
|
576
596
|
personId: string;
|
|
577
597
|
remote: {
|
|
598
|
+
description?: string | null;
|
|
578
599
|
id: string;
|
|
579
600
|
name: string;
|
|
601
|
+
url?: string | null;
|
|
580
602
|
};
|
|
581
603
|
status: ConnectionStatus.Connected;
|
|
582
604
|
} | {
|
|
@@ -587,15 +609,19 @@ declare const createWorkniceClient: (clientConfig?: ClientConfig) => {
|
|
|
587
609
|
personConnectionId: string;
|
|
588
610
|
personId: string;
|
|
589
611
|
remote: {
|
|
612
|
+
description?: string | null;
|
|
590
613
|
id: string;
|
|
591
614
|
name: string;
|
|
615
|
+
url?: string | null;
|
|
592
616
|
};
|
|
593
617
|
status: ConnectionStatus.Merged;
|
|
594
618
|
} | {
|
|
595
619
|
personConnectionId: string;
|
|
596
620
|
remote: {
|
|
621
|
+
description?: string | null;
|
|
597
622
|
id: string;
|
|
598
623
|
name: string;
|
|
624
|
+
url?: string | null;
|
|
599
625
|
};
|
|
600
626
|
status: ConnectionStatus.RemoteOnly;
|
|
601
627
|
}, fetchOptions?: FetchOptions) => Promise<({
|
|
@@ -610,6 +636,7 @@ declare const createWorkniceClient: (clientConfig?: ClientConfig) => {
|
|
|
610
636
|
updatedAt: string;
|
|
611
637
|
} | null;
|
|
612
638
|
remote?: {
|
|
639
|
+
description?: string | null;
|
|
613
640
|
name: string;
|
|
614
641
|
id: string;
|
|
615
642
|
url?: string | null;
|
|
@@ -617,6 +644,7 @@ declare const createWorkniceClient: (clientConfig?: ClientConfig) => {
|
|
|
617
644
|
} & {
|
|
618
645
|
status: ConnectionStatus.Connected;
|
|
619
646
|
remote: {
|
|
647
|
+
description?: string | null;
|
|
620
648
|
name: string;
|
|
621
649
|
id: string;
|
|
622
650
|
url?: string | null;
|
|
@@ -638,6 +666,7 @@ declare const createWorkniceClient: (clientConfig?: ClientConfig) => {
|
|
|
638
666
|
updatedAt: string;
|
|
639
667
|
} | null;
|
|
640
668
|
remote?: {
|
|
669
|
+
description?: string | null;
|
|
641
670
|
name: string;
|
|
642
671
|
id: string;
|
|
643
672
|
url?: string | null;
|
|
@@ -645,6 +674,7 @@ declare const createWorkniceClient: (clientConfig?: ClientConfig) => {
|
|
|
645
674
|
} & {
|
|
646
675
|
status: ConnectionStatus.Merged;
|
|
647
676
|
remote: {
|
|
677
|
+
description?: string | null;
|
|
648
678
|
name: string;
|
|
649
679
|
id: string;
|
|
650
680
|
url?: string | null;
|
|
@@ -666,6 +696,7 @@ declare const createWorkniceClient: (clientConfig?: ClientConfig) => {
|
|
|
666
696
|
updatedAt: string;
|
|
667
697
|
} | null;
|
|
668
698
|
remote?: {
|
|
699
|
+
description?: string | null;
|
|
669
700
|
name: string;
|
|
670
701
|
id: string;
|
|
671
702
|
url?: string | null;
|
|
@@ -690,6 +721,7 @@ declare const createWorkniceClient: (clientConfig?: ClientConfig) => {
|
|
|
690
721
|
updatedAt: string;
|
|
691
722
|
} | null;
|
|
692
723
|
remote?: {
|
|
724
|
+
description?: string | null;
|
|
693
725
|
name: string;
|
|
694
726
|
id: string;
|
|
695
727
|
url?: string | null;
|
|
@@ -697,6 +729,7 @@ declare const createWorkniceClient: (clientConfig?: ClientConfig) => {
|
|
|
697
729
|
} & {
|
|
698
730
|
status: ConnectionStatus.RemoteOnly;
|
|
699
731
|
remote: {
|
|
732
|
+
description?: string | null;
|
|
700
733
|
name: string;
|
|
701
734
|
id: string;
|
|
702
735
|
url?: string | null;
|
package/dist/api/_generated.d.ts
CHANGED
|
@@ -977,11 +977,15 @@ type ChoiceDocumentFieldOptionInput = {
|
|
|
977
977
|
value: Scalars['String']['input'];
|
|
978
978
|
};
|
|
979
979
|
type ConnectionRemote = {
|
|
980
|
+
/** Useful details that can be used to identify the remote record. Optionally tab-delimited. */
|
|
981
|
+
description?: Maybe<Scalars['String']['output']>;
|
|
980
982
|
id: Scalars['String']['output'];
|
|
981
983
|
name: Scalars['String']['output'];
|
|
982
984
|
url?: Maybe<Scalars['String']['output']>;
|
|
983
985
|
};
|
|
984
986
|
type ConnectionRemoteInput = {
|
|
987
|
+
/** Useful details that can be used to identify the remote record. Optionally tab-delimited. */
|
|
988
|
+
description?: InputMaybe<Scalars['String']['input']>;
|
|
985
989
|
id: Scalars['String']['input'];
|
|
986
990
|
name: Scalars['String']['input'];
|
|
987
991
|
url?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -5302,8 +5306,9 @@ type CreatePersonConnectionMutation = {
|
|
|
5302
5306
|
updatedAt: string;
|
|
5303
5307
|
} | null;
|
|
5304
5308
|
remote?: {
|
|
5305
|
-
|
|
5309
|
+
description?: string | null;
|
|
5306
5310
|
id: string;
|
|
5311
|
+
name: string;
|
|
5307
5312
|
url?: string | null;
|
|
5308
5313
|
} | null;
|
|
5309
5314
|
};
|
|
@@ -5537,8 +5542,9 @@ type GetPersonConnectionsQuery = {
|
|
|
5537
5542
|
updatedAt: string;
|
|
5538
5543
|
} | null;
|
|
5539
5544
|
remote?: {
|
|
5540
|
-
|
|
5545
|
+
description?: string | null;
|
|
5541
5546
|
id: string;
|
|
5547
|
+
name: string;
|
|
5542
5548
|
url?: string | null;
|
|
5543
5549
|
} | null;
|
|
5544
5550
|
}>;
|
|
@@ -5555,8 +5561,9 @@ type GetPersonConnectionsQuery = {
|
|
|
5555
5561
|
updatedAt: string;
|
|
5556
5562
|
} | null;
|
|
5557
5563
|
remote?: {
|
|
5558
|
-
|
|
5564
|
+
description?: string | null;
|
|
5559
5565
|
id: string;
|
|
5566
|
+
name: string;
|
|
5560
5567
|
url?: string | null;
|
|
5561
5568
|
} | null;
|
|
5562
5569
|
}>;
|
|
@@ -5573,8 +5580,9 @@ type GetPersonConnectionsQuery = {
|
|
|
5573
5580
|
updatedAt: string;
|
|
5574
5581
|
} | null;
|
|
5575
5582
|
remote?: {
|
|
5576
|
-
|
|
5583
|
+
description?: string | null;
|
|
5577
5584
|
id: string;
|
|
5585
|
+
name: string;
|
|
5578
5586
|
url?: string | null;
|
|
5579
5587
|
} | null;
|
|
5580
5588
|
}>;
|
|
@@ -5591,8 +5599,9 @@ type GetPersonConnectionsQuery = {
|
|
|
5591
5599
|
updatedAt: string;
|
|
5592
5600
|
} | null;
|
|
5593
5601
|
remote?: {
|
|
5594
|
-
|
|
5602
|
+
description?: string | null;
|
|
5595
5603
|
id: string;
|
|
5604
|
+
name: string;
|
|
5596
5605
|
url?: string | null;
|
|
5597
5606
|
} | null;
|
|
5598
5607
|
}>;
|
|
@@ -5609,8 +5618,9 @@ type GetPersonConnectionsQuery = {
|
|
|
5609
5618
|
updatedAt: string;
|
|
5610
5619
|
} | null;
|
|
5611
5620
|
remote?: {
|
|
5612
|
-
|
|
5621
|
+
description?: string | null;
|
|
5613
5622
|
id: string;
|
|
5623
|
+
name: string;
|
|
5614
5624
|
url?: string | null;
|
|
5615
5625
|
} | null;
|
|
5616
5626
|
}>;
|
|
@@ -5717,6 +5727,7 @@ type UpdatePersonConnectionMutation = {
|
|
|
5717
5727
|
updatedAt: string;
|
|
5718
5728
|
} | null;
|
|
5719
5729
|
remote?: {
|
|
5730
|
+
description?: string | null;
|
|
5720
5731
|
name: string;
|
|
5721
5732
|
id: string;
|
|
5722
5733
|
url?: string | null;
|