0.0.20240404 • Published 1 month ago

@maxim_mazurok/gapi.client.jobs-v3 v0.0.20240404

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

TypeScript typings for Cloud Talent Solution API v3

Cloud Talent Solution provides the capability to create, read, update, and delete job postings, as well as search jobs based on keywords and filters. For detailed description please check documentation.

Installing

Install typings for Cloud Talent Solution API:

npm install @types/gapi.client.jobs-v3 --save-dev

Usage

You need to initialize Google API client in your code:

gapi.load('client', () => {
  // now we can use gapi.client
  // ...
});

Then load api client wrapper:

gapi.client.load(
  'https://jobs.googleapis.com/$discovery/rest?version=v3',
  () => {
    // now we can use:
    // gapi.client.jobs
  }
);
// Deprecated, use discovery document URL, see https://github.com/google/google-api-javascript-client/blob/master/docs/reference.md#----gapiclientloadname----version----callback--
gapi.client.load('jobs', 'v3', () => {
  // now we can use:
  // gapi.client.jobs
});

Don't forget to authenticate your client before sending any request to resources:

// declare client_id registered in Google Developers Console
var client_id = '',
  scope = [
    // See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
    'https://www.googleapis.com/auth/cloud-platform',

    // Manage job postings
    'https://www.googleapis.com/auth/jobs',
  ],
  immediate = true;
// ...

gapi.auth.authorize(
  {client_id: client_id, scope: scope, immediate: immediate},
  authResult => {
    if (authResult && !authResult.error) {
      /* handle successful authorization */
    } else {
      /* handle authorization error */
    }
  }
);

After that you can use Cloud Talent Solution API resources:

/*
Completes the specified prefix with keyword suggestions. Intended for use by a job search auto-complete search box.
*/
await gapi.client.jobs.projects.complete({name: 'name'});
0.0.20240404

1 month ago

0.0.20240311

2 months ago

0.0.20240202

4 months ago

0.0.20240125

4 months ago

0.0.20231128

6 months ago

0.0.20230817

9 months ago

0.0.20231018

7 months ago

0.0.20230920

8 months ago

0.0.20230925

8 months ago

0.0.20230719

10 months ago

0.0.20230717

10 months ago

0.0.20230919

8 months ago

0.0.20230711

10 months ago

0.0.20230914

8 months ago

0.0.20230713

10 months ago

0.0.20230714

10 months ago

0.0.20230906

9 months ago

0.0.20230908

9 months ago

0.0.20230822

9 months ago

0.0.20230705

11 months ago

0.0.20230523

12 months ago

0.0.20230531

12 months ago

0.0.20230413

1 year ago

0.0.20230314

1 year ago

0.0.20230416

1 year ago

0.0.20230317

1 year ago

0.0.20230320

1 year ago

0.0.20230221

1 year ago

0.0.20230425

1 year ago

0.0.20230305

1 year ago

0.0.20230228

1 year ago

0.0.20230303

1 year ago

0.0.20230308

1 year ago

0.0.20230309

1 year ago

0.0.20230306

1 year ago

0.0.20230406

1 year ago

0.0.20230312

1 year ago

0.0.20221116

2 years ago

0.0.20230104

1 year ago

0.0.20230120

1 year ago

0.0.20221219

1 year ago

0.0.20230114

1 year ago

0.0.20230111

1 year ago

0.0.20220928

2 years ago

0.0.20221026

2 years ago

0.0.20221101

2 years ago

0.0.20221024

2 years ago

0.0.20220923

2 years ago

0.0.20220919

2 years ago

0.0.20220831

2 years ago

0.0.20220818

2 years ago

0.0.20220802

2 years ago