@nl-design-system/component-progress 1.0.1-alpha.81 → 1.0.1-alpha.82

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.
@@ -0,0 +1,35 @@
1
+ export interface ProjectFieldValue {
2
+ field: {
3
+ dataType: string;
4
+ name: string;
5
+ id: number;
6
+ };
7
+ value?: string;
8
+ color?: string;
9
+ }
10
+ export interface ProjectItem {
11
+ project: {
12
+ title: string;
13
+ number: number;
14
+ url: string;
15
+ };
16
+ fieldValues: {
17
+ nodes: ProjectFieldValue[];
18
+ };
19
+ }
20
+ export interface ComponentIssue {
21
+ title: string;
22
+ backlog: string;
23
+ number: number;
24
+ projectItems: {
25
+ nodes: ProjectItem[];
26
+ };
27
+ }
28
+ export interface ComponentProgress {
29
+ repository: {
30
+ issues: {
31
+ nodes: ComponentIssue[];
32
+ };
33
+ };
34
+ }
35
+ export declare const getComponentIssues: () => Promise<ComponentIssue[]>;
@@ -0,0 +1,27 @@
1
+ export interface ProjectV2FieldCommon {
2
+ dataType: string;
3
+ name: string;
4
+ id: string;
5
+ }
6
+ export interface Project {
7
+ number: number;
8
+ title: string;
9
+ shortDescription: string;
10
+ url: string;
11
+ updatedAt: string;
12
+ views: {
13
+ nodes: {
14
+ fields: {
15
+ nodes: ProjectV2FieldCommon[];
16
+ };
17
+ }[];
18
+ };
19
+ }
20
+ export interface ProjectResponse {
21
+ organization: {
22
+ projectsV2: {
23
+ nodes: Project[];
24
+ };
25
+ };
26
+ }
27
+ export declare const getProjects: () => Promise<Project[]>;
@@ -0,0 +1,2 @@
1
+ import { Octokit } from '@octokit/core';
2
+ export declare const graphqlWithAuth: () => Octokit & import("@octokit/plugin-paginate-graphql").paginateGraphQLInterface;
@@ -0,0 +1,3 @@
1
+ export * from './graphqlWithAuth.js';
2
+ export * from './getProjects.js';
3
+ export * from './getComponentIssues.js';
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ export * from './mapToComponentProgress.js';
2
+ export * from './mapProjects.js';
3
+ export * from './projectData.js';
@@ -0,0 +1,7 @@
1
+ import type { Project } from '../graphql/getProjects.js';
2
+ export type MappedProjects = (Omit<Project, 'views'> & {
3
+ number: number;
4
+ key: string;
5
+ tasks: any[];
6
+ })[];
7
+ export declare const mapProjects: (projects: Project[]) => MappedProjects;
@@ -0,0 +1,34 @@
1
+ import { type MappedProjects } from './index.js';
2
+ import type { ComponentIssue } from '../graphql/getComponentIssues.js';
3
+ export interface CleanComponent {
4
+ title: string;
5
+ number: number;
6
+ id: string;
7
+ url: string;
8
+ tasks: {
9
+ id: number;
10
+ value?: string;
11
+ checked: boolean;
12
+ }[];
13
+ }
14
+ export type RelayStep = 'HALL_OF_FAME' | 'CANDIDATE' | 'COMMUNITY' | 'HELP_WANTED' | 'UNKNOWN';
15
+ export interface ExtendedCleanComponent extends CleanComponent {
16
+ done: boolean;
17
+ progress: {
18
+ value: number;
19
+ max: number;
20
+ };
21
+ tasks: {
22
+ id: number;
23
+ value: string;
24
+ checked: boolean;
25
+ }[];
26
+ }
27
+ export interface CleanComponentProgress {
28
+ title: string;
29
+ backlog: string;
30
+ number: number;
31
+ relayStep: string | RelayStep;
32
+ projects: ExtendedCleanComponent[];
33
+ }
34
+ export declare const mapToComponentProgress: (issues: ComponentIssue[], projects: MappedProjects) => CleanComponentProgress[];
@@ -0,0 +1,14 @@
1
+ export declare const PROJECT_NUMBERS: {
2
+ HELP_WANTED: number;
3
+ COMMUNITY: number;
4
+ CANDIDATE: number;
5
+ HALL_OF_FAME: number;
6
+ UTRECHT: number;
7
+ AMSTERDAM: number;
8
+ RVO: number;
9
+ LOGIUS: number;
10
+ DEN_HAAG: number;
11
+ };
12
+ export declare const PROJECTS: {
13
+ [x: number]: string;
14
+ };
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.1-alpha.81",
2
+ "version": "1.0.1-alpha.82",
3
3
  "author": "Community for NL Design System",
4
4
  "description": "Script to get the component progress for the documentation of NL Design System",
5
5
  "license": "EUPL-1.2",
@@ -16,7 +16,8 @@
16
16
  "url": "git@github.com:nl-design-system/documentatie.git"
17
17
  },
18
18
  "files": [
19
- "dist/*.json"
19
+ "dist/*.json",
20
+ "dist/**/*.d.ts"
20
21
  ],
21
22
  "type": "module",
22
23
  "scripts": {
@@ -32,5 +33,5 @@
32
33
  "@types/node": "22.5.5",
33
34
  "lodash.isempty": "4.4.0"
34
35
  },
35
- "gitHead": "5b9fa54db39905f74b7da244028d3d7e66cde4ef"
36
+ "gitHead": "a558030eb480864ca895750fc440bd9e3bb0c38b"
36
37
  }