@looker/sdk 25.6.0 → 25.10.0
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/CHANGELOG.md +16 -0
- package/lib/4.0/funcs.d.ts +4 -4
- package/lib/4.0/funcs.js +349 -348
- package/lib/4.0/funcs.js.map +1 -1
- package/lib/4.0/methods.d.ts +4 -4
- package/lib/4.0/methods.js +81 -80
- package/lib/4.0/methods.js.map +1 -1
- package/lib/4.0/methodsInterface.d.ts +4 -4
- package/lib/4.0/methodsInterface.js.map +1 -1
- package/lib/4.0/models.d.ts +177 -19
- package/lib/4.0/models.js +17 -1
- package/lib/4.0/models.js.map +1 -1
- package/lib/4.0/streams.d.ts +4 -4
- package/lib/4.0/streams.js +81 -80
- package/lib/4.0/streams.js.map +1 -1
- package/lib/constants.d.ts +1 -1
- package/lib/constants.js +1 -1
- package/lib/constants.js.map +1 -1
- package/lib/esm/4.0/funcs.js +349 -348
- package/lib/esm/4.0/funcs.js.map +1 -1
- package/lib/esm/4.0/methods.js +81 -80
- package/lib/esm/4.0/methods.js.map +1 -1
- package/lib/esm/4.0/methodsInterface.js.map +1 -1
- package/lib/esm/4.0/models.js +16 -0
- package/lib/esm/4.0/models.js.map +1 -1
- package/lib/esm/4.0/streams.js +81 -80
- package/lib/esm/4.0/streams.js.map +1 -1
- package/lib/esm/constants.js +1 -1
- package/lib/esm/constants.js.map +1 -1
- package/package.json +2 -2
package/lib/esm/4.0/methods.js
CHANGED
|
@@ -1370,13 +1370,14 @@ export class Looker40SDK extends APIMethods {
|
|
|
1370
1370
|
}, body, options);
|
|
1371
1371
|
})();
|
|
1372
1372
|
}
|
|
1373
|
-
sync_lookml_dashboard(
|
|
1373
|
+
sync_lookml_dashboard(request, options) {
|
|
1374
1374
|
var _this173 = this;
|
|
1375
1375
|
return _asyncToGenerator(function* () {
|
|
1376
|
-
lookml_dashboard_id = encodeParam(lookml_dashboard_id);
|
|
1377
|
-
return _this173.patch("/dashboards/".concat(lookml_dashboard_id, "/sync"), {
|
|
1378
|
-
raw_locale
|
|
1379
|
-
|
|
1376
|
+
request.lookml_dashboard_id = encodeParam(request.lookml_dashboard_id);
|
|
1377
|
+
return _this173.patch("/dashboards/".concat(request.lookml_dashboard_id, "/sync"), {
|
|
1378
|
+
raw_locale: request.raw_locale,
|
|
1379
|
+
dashboard_ids: request.dashboard_ids
|
|
1380
|
+
}, null, options);
|
|
1380
1381
|
})();
|
|
1381
1382
|
}
|
|
1382
1383
|
dashboard(dashboard_id, fields, options) {
|
|
@@ -2330,223 +2331,242 @@ export class Looker40SDK extends APIMethods {
|
|
|
2330
2331
|
}, body, options);
|
|
2331
2332
|
})();
|
|
2332
2333
|
}
|
|
2333
|
-
|
|
2334
|
+
get_ci_run(project_id, run_id, fields, options) {
|
|
2334
2335
|
var _this276 = this;
|
|
2335
2336
|
return _asyncToGenerator(function* () {
|
|
2336
2337
|
project_id = encodeParam(project_id);
|
|
2337
|
-
|
|
2338
|
+
run_id = encodeParam(run_id);
|
|
2339
|
+
return _this276.get("/projects/".concat(project_id, "/ci/runs/").concat(run_id), {
|
|
2338
2340
|
fields
|
|
2339
2341
|
}, null, options);
|
|
2340
2342
|
})();
|
|
2341
2343
|
}
|
|
2342
|
-
|
|
2344
|
+
create_ci_run(project_id, body, fields, options) {
|
|
2343
2345
|
var _this277 = this;
|
|
2344
2346
|
return _asyncToGenerator(function* () {
|
|
2345
2347
|
project_id = encodeParam(project_id);
|
|
2346
|
-
return _this277.
|
|
2348
|
+
return _this277.post("/projects/".concat(project_id, "/ci/run"), {
|
|
2349
|
+
fields
|
|
2350
|
+
}, body, options);
|
|
2347
2351
|
})();
|
|
2348
2352
|
}
|
|
2349
|
-
|
|
2353
|
+
lock_all(project_id, fields, options) {
|
|
2350
2354
|
var _this278 = this;
|
|
2351
2355
|
return _asyncToGenerator(function* () {
|
|
2352
2356
|
project_id = encodeParam(project_id);
|
|
2353
|
-
return _this278.
|
|
2357
|
+
return _this278.post("/projects/".concat(project_id, "/manifest/lock_all"), {
|
|
2358
|
+
fields
|
|
2359
|
+
}, null, options);
|
|
2354
2360
|
})();
|
|
2355
2361
|
}
|
|
2356
|
-
|
|
2362
|
+
all_git_branches(project_id, options) {
|
|
2357
2363
|
var _this279 = this;
|
|
2358
2364
|
return _asyncToGenerator(function* () {
|
|
2359
2365
|
project_id = encodeParam(project_id);
|
|
2360
|
-
return _this279.
|
|
2366
|
+
return _this279.get("/projects/".concat(project_id, "/git_branches"), null, null, options);
|
|
2361
2367
|
})();
|
|
2362
2368
|
}
|
|
2363
|
-
|
|
2369
|
+
git_branch(project_id, options) {
|
|
2364
2370
|
var _this280 = this;
|
|
2365
2371
|
return _asyncToGenerator(function* () {
|
|
2366
2372
|
project_id = encodeParam(project_id);
|
|
2367
|
-
return _this280.
|
|
2373
|
+
return _this280.get("/projects/".concat(project_id, "/git_branch"), null, null, options);
|
|
2368
2374
|
})();
|
|
2369
2375
|
}
|
|
2370
|
-
|
|
2376
|
+
update_git_branch(project_id, body, options) {
|
|
2371
2377
|
var _this281 = this;
|
|
2378
|
+
return _asyncToGenerator(function* () {
|
|
2379
|
+
project_id = encodeParam(project_id);
|
|
2380
|
+
return _this281.put("/projects/".concat(project_id, "/git_branch"), null, body, options);
|
|
2381
|
+
})();
|
|
2382
|
+
}
|
|
2383
|
+
create_git_branch(project_id, body, options) {
|
|
2384
|
+
var _this282 = this;
|
|
2385
|
+
return _asyncToGenerator(function* () {
|
|
2386
|
+
project_id = encodeParam(project_id);
|
|
2387
|
+
return _this282.post("/projects/".concat(project_id, "/git_branch"), null, body, options);
|
|
2388
|
+
})();
|
|
2389
|
+
}
|
|
2390
|
+
find_git_branch(project_id, branch_name, options) {
|
|
2391
|
+
var _this283 = this;
|
|
2372
2392
|
return _asyncToGenerator(function* () {
|
|
2373
2393
|
project_id = encodeParam(project_id);
|
|
2374
2394
|
branch_name = encodeParam(branch_name);
|
|
2375
|
-
return
|
|
2395
|
+
return _this283.get("/projects/".concat(project_id, "/git_branch/").concat(branch_name), null, null, options);
|
|
2376
2396
|
})();
|
|
2377
2397
|
}
|
|
2378
2398
|
delete_git_branch(project_id, branch_name, options) {
|
|
2379
|
-
var
|
|
2399
|
+
var _this284 = this;
|
|
2380
2400
|
return _asyncToGenerator(function* () {
|
|
2381
2401
|
project_id = encodeParam(project_id);
|
|
2382
2402
|
branch_name = encodeParam(branch_name);
|
|
2383
|
-
return
|
|
2403
|
+
return _this284.delete("/projects/".concat(project_id, "/git_branch/").concat(branch_name), null, null, options);
|
|
2384
2404
|
})();
|
|
2385
2405
|
}
|
|
2386
2406
|
deploy_ref_to_production(request, options) {
|
|
2387
|
-
var
|
|
2407
|
+
var _this285 = this;
|
|
2388
2408
|
return _asyncToGenerator(function* () {
|
|
2389
2409
|
request.project_id = encodeParam(request.project_id);
|
|
2390
|
-
return
|
|
2410
|
+
return _this285.post("/projects/".concat(request.project_id, "/deploy_ref_to_production"), {
|
|
2391
2411
|
branch: request.branch,
|
|
2392
2412
|
ref: request.ref
|
|
2393
2413
|
}, null, options);
|
|
2394
2414
|
})();
|
|
2395
2415
|
}
|
|
2396
2416
|
deploy_to_production(project_id, options) {
|
|
2397
|
-
var
|
|
2417
|
+
var _this286 = this;
|
|
2398
2418
|
return _asyncToGenerator(function* () {
|
|
2399
2419
|
project_id = encodeParam(project_id);
|
|
2400
|
-
return
|
|
2420
|
+
return _this286.post("/projects/".concat(project_id, "/deploy_to_production"), null, null, options);
|
|
2401
2421
|
})();
|
|
2402
2422
|
}
|
|
2403
2423
|
reset_project_to_production(project_id, options) {
|
|
2404
|
-
var
|
|
2424
|
+
var _this287 = this;
|
|
2405
2425
|
return _asyncToGenerator(function* () {
|
|
2406
2426
|
project_id = encodeParam(project_id);
|
|
2407
|
-
return
|
|
2427
|
+
return _this287.post("/projects/".concat(project_id, "/reset_to_production"), null, null, options);
|
|
2408
2428
|
})();
|
|
2409
2429
|
}
|
|
2410
2430
|
reset_project_to_remote(project_id, options) {
|
|
2411
|
-
var
|
|
2431
|
+
var _this288 = this;
|
|
2412
2432
|
return _asyncToGenerator(function* () {
|
|
2413
2433
|
project_id = encodeParam(project_id);
|
|
2414
|
-
return
|
|
2434
|
+
return _this288.post("/projects/".concat(project_id, "/reset_to_remote"), null, null, options);
|
|
2415
2435
|
})();
|
|
2416
2436
|
}
|
|
2417
2437
|
all_projects(fields, options) {
|
|
2418
|
-
var
|
|
2438
|
+
var _this289 = this;
|
|
2419
2439
|
return _asyncToGenerator(function* () {
|
|
2420
|
-
return
|
|
2440
|
+
return _this289.get('/projects', {
|
|
2421
2441
|
fields
|
|
2422
2442
|
}, null, options);
|
|
2423
2443
|
})();
|
|
2424
2444
|
}
|
|
2425
2445
|
create_project(body, options) {
|
|
2426
|
-
var
|
|
2446
|
+
var _this290 = this;
|
|
2427
2447
|
return _asyncToGenerator(function* () {
|
|
2428
|
-
return
|
|
2448
|
+
return _this290.post('/projects', null, body, options);
|
|
2429
2449
|
})();
|
|
2430
2450
|
}
|
|
2431
2451
|
project(project_id, fields, options) {
|
|
2432
|
-
var
|
|
2452
|
+
var _this291 = this;
|
|
2433
2453
|
return _asyncToGenerator(function* () {
|
|
2434
2454
|
project_id = encodeParam(project_id);
|
|
2435
|
-
return
|
|
2455
|
+
return _this291.get("/projects/".concat(project_id), {
|
|
2436
2456
|
fields
|
|
2437
2457
|
}, null, options);
|
|
2438
2458
|
})();
|
|
2439
2459
|
}
|
|
2440
2460
|
update_project(project_id, body, fields, options) {
|
|
2441
|
-
var
|
|
2461
|
+
var _this292 = this;
|
|
2442
2462
|
return _asyncToGenerator(function* () {
|
|
2443
2463
|
project_id = encodeParam(project_id);
|
|
2444
|
-
return
|
|
2464
|
+
return _this292.patch("/projects/".concat(project_id), {
|
|
2445
2465
|
fields
|
|
2446
2466
|
}, body, options);
|
|
2447
2467
|
})();
|
|
2448
2468
|
}
|
|
2449
2469
|
manifest(project_id, options) {
|
|
2450
|
-
var
|
|
2470
|
+
var _this293 = this;
|
|
2451
2471
|
return _asyncToGenerator(function* () {
|
|
2452
2472
|
project_id = encodeParam(project_id);
|
|
2453
|
-
return
|
|
2473
|
+
return _this293.get("/projects/".concat(project_id, "/manifest"), null, null, options);
|
|
2454
2474
|
})();
|
|
2455
2475
|
}
|
|
2456
2476
|
git_deploy_key(project_id, options) {
|
|
2457
|
-
var
|
|
2477
|
+
var _this294 = this;
|
|
2458
2478
|
return _asyncToGenerator(function* () {
|
|
2459
2479
|
project_id = encodeParam(project_id);
|
|
2460
|
-
return
|
|
2480
|
+
return _this294.get("/projects/".concat(project_id, "/git/deploy_key"), null, null, options);
|
|
2461
2481
|
})();
|
|
2462
2482
|
}
|
|
2463
2483
|
create_git_deploy_key(project_id, options) {
|
|
2464
|
-
var
|
|
2484
|
+
var _this295 = this;
|
|
2465
2485
|
return _asyncToGenerator(function* () {
|
|
2466
2486
|
project_id = encodeParam(project_id);
|
|
2467
|
-
return
|
|
2487
|
+
return _this295.post("/projects/".concat(project_id, "/git/deploy_key"), null, null, options);
|
|
2468
2488
|
})();
|
|
2469
2489
|
}
|
|
2470
2490
|
project_validation_results(project_id, fields, options) {
|
|
2471
|
-
var
|
|
2491
|
+
var _this296 = this;
|
|
2472
2492
|
return _asyncToGenerator(function* () {
|
|
2473
2493
|
project_id = encodeParam(project_id);
|
|
2474
|
-
return
|
|
2494
|
+
return _this296.get("/projects/".concat(project_id, "/validate"), {
|
|
2475
2495
|
fields
|
|
2476
2496
|
}, null, options);
|
|
2477
2497
|
})();
|
|
2478
2498
|
}
|
|
2479
2499
|
validate_project(project_id, fields, options) {
|
|
2480
|
-
var
|
|
2500
|
+
var _this297 = this;
|
|
2481
2501
|
return _asyncToGenerator(function* () {
|
|
2482
2502
|
project_id = encodeParam(project_id);
|
|
2483
|
-
return
|
|
2503
|
+
return _this297.post("/projects/".concat(project_id, "/validate"), {
|
|
2484
2504
|
fields
|
|
2485
2505
|
}, null, options);
|
|
2486
2506
|
})();
|
|
2487
2507
|
}
|
|
2488
2508
|
project_workspace(project_id, fields, options) {
|
|
2489
|
-
var
|
|
2509
|
+
var _this298 = this;
|
|
2490
2510
|
return _asyncToGenerator(function* () {
|
|
2491
2511
|
project_id = encodeParam(project_id);
|
|
2492
|
-
return
|
|
2512
|
+
return _this298.get("/projects/".concat(project_id, "/current_workspace"), {
|
|
2493
2513
|
fields
|
|
2494
2514
|
}, null, options);
|
|
2495
2515
|
})();
|
|
2496
2516
|
}
|
|
2497
2517
|
all_project_files(project_id, fields, options) {
|
|
2498
|
-
var
|
|
2518
|
+
var _this299 = this;
|
|
2499
2519
|
return _asyncToGenerator(function* () {
|
|
2500
2520
|
project_id = encodeParam(project_id);
|
|
2501
|
-
return
|
|
2521
|
+
return _this299.get("/projects/".concat(project_id, "/files"), {
|
|
2502
2522
|
fields
|
|
2503
2523
|
}, null, options);
|
|
2504
2524
|
})();
|
|
2505
2525
|
}
|
|
2506
2526
|
project_file(project_id, file_id, fields, options) {
|
|
2507
|
-
var
|
|
2527
|
+
var _this300 = this;
|
|
2508
2528
|
return _asyncToGenerator(function* () {
|
|
2509
2529
|
project_id = encodeParam(project_id);
|
|
2510
|
-
return
|
|
2530
|
+
return _this300.get("/projects/".concat(project_id, "/files/file"), {
|
|
2511
2531
|
file_id,
|
|
2512
2532
|
fields
|
|
2513
2533
|
}, null, options);
|
|
2514
2534
|
})();
|
|
2515
2535
|
}
|
|
2516
2536
|
all_git_connection_tests(project_id, remote_url, options) {
|
|
2517
|
-
var
|
|
2537
|
+
var _this301 = this;
|
|
2518
2538
|
return _asyncToGenerator(function* () {
|
|
2519
2539
|
project_id = encodeParam(project_id);
|
|
2520
|
-
return
|
|
2540
|
+
return _this301.get("/projects/".concat(project_id, "/git_connection_tests"), {
|
|
2521
2541
|
remote_url
|
|
2522
2542
|
}, null, options);
|
|
2523
2543
|
})();
|
|
2524
2544
|
}
|
|
2525
2545
|
run_git_connection_test(request, options) {
|
|
2526
|
-
var
|
|
2546
|
+
var _this302 = this;
|
|
2527
2547
|
return _asyncToGenerator(function* () {
|
|
2528
2548
|
request.project_id = encodeParam(request.project_id);
|
|
2529
2549
|
request.test_id = encodeParam(request.test_id);
|
|
2530
|
-
return
|
|
2550
|
+
return _this302.get("/projects/".concat(request.project_id, "/git_connection_tests/").concat(request.test_id), {
|
|
2531
2551
|
remote_url: request.remote_url,
|
|
2532
2552
|
use_production: request.use_production
|
|
2533
2553
|
}, null, options);
|
|
2534
2554
|
})();
|
|
2535
2555
|
}
|
|
2536
2556
|
all_lookml_tests(project_id, file_id, options) {
|
|
2537
|
-
var
|
|
2557
|
+
var _this303 = this;
|
|
2538
2558
|
return _asyncToGenerator(function* () {
|
|
2539
2559
|
project_id = encodeParam(project_id);
|
|
2540
|
-
return
|
|
2560
|
+
return _this303.get("/projects/".concat(project_id, "/lookml_tests"), {
|
|
2541
2561
|
file_id
|
|
2542
2562
|
}, null, options);
|
|
2543
2563
|
})();
|
|
2544
2564
|
}
|
|
2545
2565
|
run_lookml_test(request, options) {
|
|
2546
|
-
var
|
|
2566
|
+
var _this304 = this;
|
|
2547
2567
|
return _asyncToGenerator(function* () {
|
|
2548
2568
|
request.project_id = encodeParam(request.project_id);
|
|
2549
|
-
return
|
|
2569
|
+
return _this304.get("/projects/".concat(request.project_id, "/lookml_tests/run"), {
|
|
2550
2570
|
file_id: request.file_id,
|
|
2551
2571
|
test: request.test,
|
|
2552
2572
|
model: request.model
|
|
@@ -2554,35 +2574,16 @@ export class Looker40SDK extends APIMethods {
|
|
|
2554
2574
|
})();
|
|
2555
2575
|
}
|
|
2556
2576
|
tag_ref(request, options) {
|
|
2557
|
-
var
|
|
2577
|
+
var _this305 = this;
|
|
2558
2578
|
return _asyncToGenerator(function* () {
|
|
2559
2579
|
request.project_id = encodeParam(request.project_id);
|
|
2560
|
-
return
|
|
2580
|
+
return _this305.post("/projects/".concat(request.project_id, "/tag"), {
|
|
2561
2581
|
commit_sha: request.commit_sha,
|
|
2562
2582
|
tag_name: request.tag_name,
|
|
2563
2583
|
tag_message: request.tag_message
|
|
2564
2584
|
}, request.body, options);
|
|
2565
2585
|
})();
|
|
2566
2586
|
}
|
|
2567
|
-
get_ci_run(project_id, run_id, fields, options) {
|
|
2568
|
-
var _this304 = this;
|
|
2569
|
-
return _asyncToGenerator(function* () {
|
|
2570
|
-
project_id = encodeParam(project_id);
|
|
2571
|
-
run_id = encodeParam(run_id);
|
|
2572
|
-
return _this304.get("/projects/".concat(project_id, "/ci/runs/").concat(run_id), {
|
|
2573
|
-
fields
|
|
2574
|
-
}, null, options);
|
|
2575
|
-
})();
|
|
2576
|
-
}
|
|
2577
|
-
create_ci_run(project_id, body, fields, options) {
|
|
2578
|
-
var _this305 = this;
|
|
2579
|
-
return _asyncToGenerator(function* () {
|
|
2580
|
-
project_id = encodeParam(project_id);
|
|
2581
|
-
return _this305.post("/projects/".concat(project_id, "/ci/run"), {
|
|
2582
|
-
fields
|
|
2583
|
-
}, body, options);
|
|
2584
|
-
})();
|
|
2585
|
-
}
|
|
2586
2587
|
update_repository_credential(root_project_id, credential_id, body, options) {
|
|
2587
2588
|
var _this306 = this;
|
|
2588
2589
|
return _asyncToGenerator(function* () {
|