@spotify/backstage-plugin-pulse-common 0.2.1

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,2 @@
1
+ import{createPermission as _}from"@backstage/plugin-permission-common";var s=(I=>(I.DuplicateResponse="DUPLICATE_RESPONSE",I.InternalError="INTERNAL_ERROR",I.InvalidDates="INVALID_DATES",I.InvalidId="INVALID_ID",I.InvalidResponse="INVALID_RESPONSE",I.MissingSurveyTemplate="MISSING_SURVEY_TEMPLATE",I.MissingTitle="MISSING_TITLE",I.OverlappingSurveys="OVERLAPPING_SURVEYS",I.SurveyIsClosed="SURVEY_IS_CLOSED",I.Unauthorized="UNAUTHORIZED",I))(s||{}),i=(I=>(I.Active="ACTIVE",I.Published="PUBLISHED",I))(i||{}),e=(I=>(I.Q1="Q1",I.Q2="Q2",I.Q3="Q3",I.Q4="Q4",I))(e||{}),n=Object.freeze({__proto__:null,MutationResponseErrorCode:s,SurveyStatus:i,TargetQuarter:e});const E="survey-instance",S=_({name:"survey.instance.administer",attributes:{action:"create"}}),v=[S],a={allPermissions:v,SURVEY_RESOURCE_TYPE:E,surveyAdministerPermission:S};export{n as GraphQLTypes,a as permissions};
2
+ //# sourceMappingURL=index.esm.js.map
package/package.json ADDED
@@ -0,0 +1,44 @@
1
+ {
2
+ "name": "@spotify/backstage-plugin-pulse-common",
3
+ "version": "0.2.1",
4
+ "license": "SEE LICENSE IN LICENSE.md",
5
+ "homepage": "https://backstage.spotify.com/",
6
+ "main": "dist/index.cjs.js",
7
+ "types": "dist/index.d.ts",
8
+ "publishConfig": {
9
+ "main": "dist/index.cjs.js",
10
+ "module": "dist/index.esm.js",
11
+ "types": "dist/index.d.ts"
12
+ },
13
+ "backstage": {
14
+ "role": "common-library"
15
+ },
16
+ "scripts": {
17
+ "build": "backstage-cli package build --minify",
18
+ "lint": "backstage-cli package lint",
19
+ "test": "backstage-cli package test",
20
+ "clean": "backstage-cli package clean",
21
+ "prepack": "backstage-cli package prepack",
22
+ "postpack": "backstage-cli package postpack",
23
+ "prepare": "yarn generate",
24
+ "generate": "graphql-codegen"
25
+ },
26
+ "dependencies": {
27
+ "@backstage/plugin-permission-common": "^0.7.2",
28
+ "graphql": "^16.0.0"
29
+ },
30
+ "devDependencies": {
31
+ "@backstage/cli": "^0.22.0",
32
+ "@graphql-codegen/cli": "^2.13.1",
33
+ "@graphql-codegen/typescript": "^2.7.3",
34
+ "@graphql-codegen/typescript-resolvers": "^2.7.2",
35
+ "prettier": "^2.7.1"
36
+ },
37
+ "files": [
38
+ "dist",
39
+ "!dist/**/*.map",
40
+ "src/permissions.ts",
41
+ "src/graphql/schema-types.generated.ts"
42
+ ],
43
+ "module": "dist/index.esm.js"
44
+ }