chrome-types 0.1.88 → 0.1.89

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.
Files changed (3) hide show
  1. package/_all.d.ts +50 -7
  2. package/index.d.ts +44 -6
  3. package/package.json +2 -2
package/_all.d.ts CHANGED
@@ -14,8 +14,8 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- // Generated on Thu Feb 17 2022 22:27:57 GMT+0000 (Coordinated Universal Time)
18
- // Built at 2f4279452de958d9539298dd7c0740dea7790af4
17
+ // Generated on Fri Feb 18 2022 22:28:05 GMT+0000 (Coordinated Universal Time)
18
+ // Built at d8e5cbade765a5019c53f0fd73a6cb010edf80e3
19
19
 
20
20
  // Includes all types, including MV2 + Platform Apps APIs.
21
21
 
@@ -820,9 +820,14 @@ declare namespace chrome {
820
820
  */
821
821
  export function getIsInstalled(): boolean;
822
822
 
823
+ /**
824
+ * @chrome-returns-extra since Pending
825
+ */
826
+ export function installState(): Promise<InstallState>;
827
+
823
828
  export function installState(
824
829
 
825
- callback: (
830
+ callback?: (
826
831
  state: InstallState,
827
832
  ) => void,
828
833
  ): void;
@@ -21530,12 +21535,22 @@ declare namespace chrome {
21530
21535
 
21531
21536
  /**
21532
21537
  * Submits the job for print. If the extension is not listed in PrintingAPIExtensionsAllowlist policy, the user will be prompted to accept the print job.
21538
+ *
21539
+ * @chrome-returns-extra since Pending
21533
21540
  */
21534
21541
  export function submitJob(
21535
21542
 
21536
21543
  request: SubmitJobRequest,
21544
+ ): Promise<SubmitJobResponse>;
21537
21545
 
21538
- callback: (
21546
+ /**
21547
+ * Submits the job for print. If the extension is not listed in PrintingAPIExtensionsAllowlist policy, the user will be prompted to accept the print job.
21548
+ */
21549
+ export function submitJob(
21550
+
21551
+ request: SubmitJobRequest,
21552
+
21553
+ callback?: (
21539
21554
  response: SubmitJobResponse,
21540
21555
  ) => void,
21541
21556
  ): void;
@@ -21543,33 +21558,61 @@ declare namespace chrome {
21543
21558
  /**
21544
21559
  * Cancels previously submitted job.
21545
21560
  *
21561
+ * @chrome-returns-extra since Pending
21546
21562
  * @param jobId The id of the print job to cancel. This should be the same id received in a {@link SubmitJobResponse}.
21547
21563
  */
21548
21564
  export function cancelJob(
21549
21565
 
21550
21566
  jobId: string,
21567
+ ): Promise<void>;
21551
21568
 
21552
- callback: () => void,
21569
+ /**
21570
+ * Cancels previously submitted job.
21571
+ *
21572
+ * @param jobId The id of the print job to cancel. This should be the same id received in a {@link SubmitJobResponse}.
21573
+ */
21574
+ export function cancelJob(
21575
+
21576
+ jobId: string,
21577
+
21578
+ callback?: () => void,
21553
21579
  ): void;
21554
21580
 
21581
+ /**
21582
+ * Returns the list of available printers on the device. This includes manually added, enterprise and discovered printers.
21583
+ *
21584
+ * @chrome-returns-extra since Pending
21585
+ */
21586
+ export function getPrinters(): Promise<Printer[]>;
21587
+
21555
21588
  /**
21556
21589
  * Returns the list of available printers on the device. This includes manually added, enterprise and discovered printers.
21557
21590
  */
21558
21591
  export function getPrinters(
21559
21592
 
21560
- callback: (
21593
+ callback?: (
21561
21594
  printers: Printer[],
21562
21595
  ) => void,
21563
21596
  ): void;
21564
21597
 
21565
21598
  /**
21566
21599
  * Returns the status and capabilities of the printer in [CDD format](https://developers.google.com/cloud-print/docs/cdd#cdd). This call will fail with a runtime error if no printers with given id are installed.
21600
+ *
21601
+ * @chrome-returns-extra since Pending
21567
21602
  */
21568
21603
  export function getPrinterInfo(
21569
21604
 
21570
21605
  printerId: string,
21606
+ ): Promise<GetPrinterInfoResponse>;
21571
21607
 
21572
- callback: (
21608
+ /**
21609
+ * Returns the status and capabilities of the printer in [CDD format](https://developers.google.com/cloud-print/docs/cdd#cdd). This call will fail with a runtime error if no printers with given id are installed.
21610
+ */
21611
+ export function getPrinterInfo(
21612
+
21613
+ printerId: string,
21614
+
21615
+ callback?: (
21573
21616
  response: GetPrinterInfoResponse,
21574
21617
  ) => void,
21575
21618
  ): void;
package/index.d.ts CHANGED
@@ -14,8 +14,8 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- // Generated on Thu Feb 17 2022 22:27:53 GMT+0000 (Coordinated Universal Time)
18
- // Built at 2f4279452de958d9539298dd7c0740dea7790af4
17
+ // Generated on Fri Feb 18 2022 22:28:00 GMT+0000 (Coordinated Universal Time)
18
+ // Built at d8e5cbade765a5019c53f0fd73a6cb010edf80e3
19
19
 
20
20
  // Includes MV3+ APIs only.
21
21
 
@@ -14423,12 +14423,22 @@ declare namespace chrome {
14423
14423
 
14424
14424
  /**
14425
14425
  * Submits the job for print. If the extension is not listed in PrintingAPIExtensionsAllowlist policy, the user will be prompted to accept the print job.
14426
+ *
14427
+ * @chrome-returns-extra since Pending
14426
14428
  */
14427
14429
  export function submitJob(
14428
14430
 
14429
14431
  request: SubmitJobRequest,
14432
+ ): Promise<SubmitJobResponse>;
14430
14433
 
14431
- callback: (
14434
+ /**
14435
+ * Submits the job for print. If the extension is not listed in PrintingAPIExtensionsAllowlist policy, the user will be prompted to accept the print job.
14436
+ */
14437
+ export function submitJob(
14438
+
14439
+ request: SubmitJobRequest,
14440
+
14441
+ callback?: (
14432
14442
  response: SubmitJobResponse,
14433
14443
  ) => void,
14434
14444
  ): void;
@@ -14436,33 +14446,61 @@ declare namespace chrome {
14436
14446
  /**
14437
14447
  * Cancels previously submitted job.
14438
14448
  *
14449
+ * @chrome-returns-extra since Pending
14439
14450
  * @param jobId The id of the print job to cancel. This should be the same id received in a {@link SubmitJobResponse}.
14440
14451
  */
14441
14452
  export function cancelJob(
14442
14453
 
14443
14454
  jobId: string,
14455
+ ): Promise<void>;
14444
14456
 
14445
- callback: () => void,
14457
+ /**
14458
+ * Cancels previously submitted job.
14459
+ *
14460
+ * @param jobId The id of the print job to cancel. This should be the same id received in a {@link SubmitJobResponse}.
14461
+ */
14462
+ export function cancelJob(
14463
+
14464
+ jobId: string,
14465
+
14466
+ callback?: () => void,
14446
14467
  ): void;
14447
14468
 
14469
+ /**
14470
+ * Returns the list of available printers on the device. This includes manually added, enterprise and discovered printers.
14471
+ *
14472
+ * @chrome-returns-extra since Pending
14473
+ */
14474
+ export function getPrinters(): Promise<Printer[]>;
14475
+
14448
14476
  /**
14449
14477
  * Returns the list of available printers on the device. This includes manually added, enterprise and discovered printers.
14450
14478
  */
14451
14479
  export function getPrinters(
14452
14480
 
14453
- callback: (
14481
+ callback?: (
14454
14482
  printers: Printer[],
14455
14483
  ) => void,
14456
14484
  ): void;
14457
14485
 
14458
14486
  /**
14459
14487
  * Returns the status and capabilities of the printer in [CDD format](https://developers.google.com/cloud-print/docs/cdd#cdd). This call will fail with a runtime error if no printers with given id are installed.
14488
+ *
14489
+ * @chrome-returns-extra since Pending
14460
14490
  */
14461
14491
  export function getPrinterInfo(
14462
14492
 
14463
14493
  printerId: string,
14494
+ ): Promise<GetPrinterInfoResponse>;
14464
14495
 
14465
- callback: (
14496
+ /**
14497
+ * Returns the status and capabilities of the printer in [CDD format](https://developers.google.com/cloud-print/docs/cdd#cdd). This call will fail with a runtime error if no printers with given id are installed.
14498
+ */
14499
+ export function getPrinterInfo(
14500
+
14501
+ printerId: string,
14502
+
14503
+ callback?: (
14466
14504
  response: GetPrinterInfoResponse,
14467
14505
  ) => void,
14468
14506
  ): void;
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "type": "module",
6
6
  "name": "chrome-types",
7
7
  "config": {
8
- "build-hash": "bf70dc6175255465"
8
+ "build-hash": "0b4f465463d2fbfc"
9
9
  },
10
10
  "repository": {
11
11
  "type": "git",
@@ -16,5 +16,5 @@
16
16
  "url": "https://github.com/GoogleChrome/chrome-types/issues"
17
17
  },
18
18
  "homepage": "https://github.com/GoogleChrome/chrome-types",
19
- "version": "0.1.88"
19
+ "version": "0.1.89"
20
20
  }