@@ -2724,6 +2724,67 @@ actions:
27242724 console.log(result);
27252725 }
27262726
2727+ run();
2728+ - target : $["paths"]["/unified/hris/custom_field_definitions/employees"]["get"]
2729+ update :
2730+ x-codeSamples :
2731+ - lang : typescript
2732+ label : hris_list_employee_custom_field_definitions
2733+ source : |-
2734+ import { StackOne } from "@stackone/stackone-client-ts";
2735+
2736+ const stackOne = new StackOne({
2737+ security: {
2738+ username: "",
2739+ password: "",
2740+ },
2741+ });
2742+
2743+ async function run() {
2744+ const result = await stackOne.hris.listEmployeeCustomFieldDefinitions({
2745+ fields: "id,remote_id,name,description,type,options",
2746+ filter: {
2747+ updatedAfter: "2020-01-01T00:00:00.000Z",
2748+ },
2749+ updatedAfter: "2020-01-01T00:00:00.000Z",
2750+ xAccountId: "<id>",
2751+ });
2752+
2753+ // Handle the result
2754+ console.log(result);
2755+ }
2756+
2757+ run();
2758+ - target : $["paths"]["/unified/hris/custom_field_definitions/employees/{id}"]["get"]
2759+ update :
2760+ x-codeSamples :
2761+ - lang : typescript
2762+ label : hris_get_employee_custom_field_definition
2763+ source : |-
2764+ import { StackOne } from "@stackone/stackone-client-ts";
2765+
2766+ const stackOne = new StackOne({
2767+ security: {
2768+ username: "",
2769+ password: "",
2770+ },
2771+ });
2772+
2773+ async function run() {
2774+ const result = await stackOne.hris.getEmployeeCustomFieldDefinition({
2775+ id: "<id>",
2776+ fields: "id,remote_id,name,description,type,options",
2777+ filter: {
2778+ updatedAfter: "2020-01-01T00:00:00.000Z",
2779+ },
2780+ updatedAfter: "2020-01-01T00:00:00.000Z",
2781+ xAccountId: "<id>",
2782+ });
2783+
2784+ // Handle the result
2785+ console.log(result);
2786+ }
2787+
27272788 run();
27282789 - target : $["paths"]["/unified/hris/documents/employee_categories"]["get"]
27292790 update :
@@ -4336,6 +4397,63 @@ actions:
43364397 console.log(result);
43374398 }
43384399
4400+ run();
4401+ - target : $["paths"]["/unified/hris/time_off_types"]["get"]
4402+ update :
4403+ x-codeSamples :
4404+ - lang : typescript
4405+ label : hris_list_time_off_types
4406+ source : |-
4407+ import { StackOne } from "@stackone/stackone-client-ts";
4408+
4409+ const stackOne = new StackOne({
4410+ security: {
4411+ username: "",
4412+ password: "",
4413+ },
4414+ });
4415+
4416+ async function run() {
4417+ const result = await stackOne.hris.listTimeOffTypes({
4418+ fields: "id,remote_id,name,active",
4419+ filter: {
4420+ updatedAfter: "2020-01-01T00:00:00.000Z",
4421+ },
4422+ updatedAfter: "2020-01-01T00:00:00.000Z",
4423+ xAccountId: "<id>",
4424+ });
4425+
4426+ // Handle the result
4427+ console.log(result);
4428+ }
4429+
4430+ run();
4431+ - target : $["paths"]["/unified/hris/time_off_types/{id}"]["get"]
4432+ update :
4433+ x-codeSamples :
4434+ - lang : typescript
4435+ label : hris_get_time_off_type
4436+ source : |-
4437+ import { StackOne } from "@stackone/stackone-client-ts";
4438+
4439+ const stackOne = new StackOne({
4440+ security: {
4441+ username: "",
4442+ password: "",
4443+ },
4444+ });
4445+
4446+ async function run() {
4447+ const result = await stackOne.hris.getTimeOffType({
4448+ id: "<id>",
4449+ fields: "id,remote_id,name,active",
4450+ xAccountId: "<id>",
4451+ });
4452+
4453+ // Handle the result
4454+ console.log(result);
4455+ }
4456+
43394457 run();
43404458 - target : $["paths"]["/unified/iam/groups"]["get"]
43414459 update :
@@ -4880,7 +4998,7 @@ actions:
48804998
48814999 async function run() {
48825000 const result = await stackOne.lms.listContent({
4883- fields: "id,remote_id,external_reference,course_ids,remote_course_ids,title,description,languages,content_url,content_type,cover_url,active,duration,order,content_launch_method, categories,skills,updated_at,created_at",
5001+ fields: "id,remote_id,external_reference,course_ids,remote_course_ids,title,description,languages,content_url,content_type,cover_url,active,duration,order,categories,skills,updated_at,created_at",
48845002 filter: {
48855003 updatedAfter: "2020-01-01T00:00:00.000Z",
48865004 },
@@ -4939,7 +5057,6 @@ actions:
49395057 name: "Information-Technology",
49405058 },
49415059 ],
4942- contentLaunchMethod: {},
49435060 order: 1,
49445061 categories: [
49455062 {
@@ -5009,7 +5126,6 @@ actions:
50095126 name: "Information-Technology",
50105127 },
50115128 ],
5012- contentLaunchMethod: {},
50135129 order: 1,
50145130 categories: [
50155131 {
@@ -5048,7 +5164,6 @@ actions:
50485164 name: "Information-Technology",
50495165 },
50505166 ],
5051- contentLaunchMethod: {},
50525167 order: 1,
50535168 categories: [
50545169 {
@@ -5087,7 +5202,7 @@ actions:
50875202 async function run() {
50885203 const result = await stackOne.lms.getContent({
50895204 id: "<id>",
5090- fields: "id,remote_id,external_reference,course_ids,remote_course_ids,title,description,languages,content_url,content_type,cover_url,active,duration,order,content_launch_method, categories,skills,updated_at,created_at",
5205+ fields: "id,remote_id,external_reference,course_ids,remote_course_ids,title,description,languages,content_url,content_type,cover_url,active,duration,order,categories,skills,updated_at,created_at",
50915206 xAccountId: "<id>",
50925207 });
50935208
@@ -5172,8 +5287,6 @@ actions:
51725287 name: "Information-Technology",
51735288 },
51745289 ],
5175- updatedAt: "2021-07-21T14:00:00.000Z",
5176- createdAt: "2021-07-21T14:00:00.000Z",
51775290 categories: [
51785291 {
51795292 unifiedCustomFields: {
@@ -5247,8 +5360,6 @@ actions:
52475360 name: "Information-Technology",
52485361 },
52495362 ],
5250- updatedAt: "2021-07-21T14:00:00.000Z",
5251- createdAt: "2021-07-21T14:00:00.000Z",
52525363 categories: [
52535364 {
52545365 unifiedCustomFields: {
@@ -5303,8 +5414,6 @@ actions:
53035414 name: "Information-Technology",
53045415 },
53055416 ],
5306- updatedAt: "2021-07-21T14:00:00.000Z",
5307- createdAt: "2021-07-21T14:00:00.000Z",
53085417 categories: [
53095418 {
53105419 unifiedCustomFields: {
@@ -5587,10 +5696,9 @@ actions:
55875696 passthrough: {
55885697 "other_known_names": "John Doe",
55895698 },
5590- externalId: "SOFTWARE-ENG-LV1-TRAINING-VIDEO-1-COMPLETION",
5591- contentExternalReference: "SOFTWARE-ENG-LV1-TRAINING-VIDEO-1-CONTENT",
5592- contentId: "16873-ENG-VIDEO-1",
55935699 completedAt: "2021-07-21T14:00:00.000Z",
5700+ learningObjectId: "e3gd34-23tr21-er234-345er56",
5701+ learningObjectExternalReference: "learning-content-123",
55945702 },
55955703 });
55965704
0 commit comments